I have two qestions on integrating the statistic-software slimstat into atahualpa.
1) I installed slimstat. Now I want to prevent counting me when I visit my wordpress-page. They told me to add this
PHP Code:
if (!isset($_COOKIE['dontCountMe'])) {
@include_once( $_SERVER['DOCUMENT_ROOT'] . '/slimstat/
inc.stats.php' ); }
But I can't add php to the header in atahualpa and I don't want to use the php-way of adding slimstat. I added this java script
HTML Code:
<script type="text/javascript" src="/wordpress/slimstat/?js"></script>
Is there a html/javascript-way to ask for a cookie before starting this code?
2) How can I add a cookie to the browser, so that every time someone is starting the admin-panel, this cookie is set? They are using this cookie: setcookie('dontCountMe', '1', time() + 365 * 24 * 60 * 60, '/'). I dont know what these numbers are all about and how to add it to the admin-panel. Or maybe at least manually?
Of course, I asked the slimstat group in first place, but they dont answer.
Greetings,
Drongo