where to add google analytics code
The Google Analytics tag should be added near the top of the <head> tag and
before any other script or CSS tags
where to add google analytics code
The Google Analytics tag should be added near the top of the <head> tag and
before any other script or CSS tags
google analytics kirby
Yes, like this:
<?php if(!cookie::exists('accepted')) {
cookie::set('accepted', 'true', 1440);
}
?>
This code checks if the cookie with the name “accepted” has already been set, if not, the cookie is set with the value “true” and a lifetime of 24 hours. For more options, see the docs.
You can check if the cookie has been set with
<?= cookie:get('accepted') ?>
Hope this helps.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us