Cookie Saved: A native CodeIgniter cookie named cookie_consent is stored in the browser with the value accepted.
Lifespan: It is configured to last for 1 year (31536000 seconds). The user will not see the banner again for a full year unless they clear their browser history.
Tracking Status: The if condition in your views evaluates to true. Third-party scripts (like Google Analytics, Facebook Pixel, or Hotjar) will load and run, allowing you to collect user behavior metrics.
2. What Happens on "Decline"
Cookie Saved: A cookie named cookie_consent is still stored, but with the value declined.
Lifespan: It is configured as a Session Cookie (0 seconds). This means it is automatically destroyed the moment the user closes their browser tab or window.
Tracking Status: The if condition in your views evaluates to false. Third-party tracking scripts are completely blocked from loading. Your server only runs strictly necessary operational features.
We use cookies to improve your browsing experience. By clicking "Accept All", you consent to our use of cookies.
Read our Cookie Policy.