New options and improvements for the CookieBar plugin
We've recently had a flurry of new CookieBar users from Italy, where laws surrounding cookies have been implemented.
As a result of dozens of requests, the following two features have been added:
- acceptOnScroll - If set to 1 or greater, when the user scrolls that number of pixels up or down the page, they will automatically accept cookies.
- renewOnVisit - If set to true, whenever someone revisits your website, the cookie set by CookieBar will be renewed for a year.
The structure of the CookieBar code has also been improved, and there are another two new options as a result:
- acceptFunction - Allows you to set a javascript function to run when the user accepts cookies
- declineFunction - Allows you to set a javascript function to run when the user declines cookies
The above two options can be used to load iframes and other code which could result in cookies being saved or removed from a user's computer.
Thank you to everyone for your requests and continued use of CookieBar. It's amazing to see just how popular it has become!
Posted on the 8th June 2015 at 2:28pm.