Skip to content
Permalink
Browse files

Google Analytics Cookie removal on decline

I've also updated the following with this release:
1. CookieCutter (div replacer) now has an explicit Accept button
whether you hide those buttons or not
2. I've appended the cookies notification bar if you choose a bottom
position, this will push it to the foot of the html for mobile devices
and not appear at the top any more.
3. Added a "domain" option to the cookie write function, but only if
you have filled in the cookieDomain variable.
  • Loading branch information...
cdwharton committed May 31, 2012
1 parent ddc6d54 commit ca4d2e7c1e860de3422dee3ed16ccc6a76d6c782
Showing with 164 additions and 136 deletions.
  1. +1 −1 cookiecuttr.css
  2. +8 −0 implementation-guide.txt
  3. +155 −135 jquery.cookiecuttr.js
@@ -19,5 +19,5 @@
}

@media screen and (max-width: 480px) {
.cc-cookies { position: relative; }
.cc-cookies { position: relative; float: left; }
}
@@ -161,6 +161,8 @@ cookieDiscreetLinkText - edit the text you want to appear on the discreet option

cookieDiscreetPosition - set to topleft by default, you can also set topright, bottomleft, bottomright.

cookieDomain - empty by default, add your domain name in here without www. or https:// or http:// to remove Google Analytics cookies on decline.


Implementing on a CMS?
##########################
@@ -229,3 +231,9 @@ You want no message on any page, apart from the privacy policy page?

Options:
cookieNoMessage: true


You want to Delete Google Analytics Cookies when declined?

Options:
cookieDomain: "yourdomainhere.com"

0 comments on commit ca4d2e7

Please sign in to comment.
You can’t perform that action at this time.