4 ms·
Is there an open source JavaScript snippet somewhere that I can put on my page and it shows a pop up prompting users to accept cookies?
by scrrr 13y ago
Is there an open source JavaScript snippet somewhere that I can put on my page and it shows a pop up prompting users to accept cookies?
- stingraycharles 13y agoThere are several, with http://www.civicuk.com/cookie-law/index http://www.civicuk.com/cookie-law/index and http://silktide.com/cookieconsent http://silktide.com/cookieconsent being the most popular afaik.
- ealexhudson 13y agoIf your server sends cookies automatically, it would fall foul of this Spanish implementation of the law (supposedly). Implied consent does not cover simply giving the users information, and some of the cookies being argued over are third-party too. There's no third-party snippet you can drop in and "fix" this for Google Analytics (for example).
- vicentereig 13y agoYou actually need to avoid cookies getting stored until users give their consent to do so. Probably something like the rack-policy Ruby gem linked below will help making sure there is no cookies at all. https://github.com/peter-murach/rack-policy#rack-policy https://github.com/peter-murach/rack-policy#rack-policy I ignore if there are similar libraries for other platforms.