Skip to content
weare2ndfloor edited this page Oct 31, 2012 · 5 revisions

Customise CookieCutter

  • cookieCutter - if you'd like to actively hide parts of your website set this to true, for example say you use a comments system that inserts cookies, you can put the div name in below to replace it with a cookie warning message.

  • cookieAnalytics - if you are just using a simple analytics package you can set this to true, it displays a simple default message with no privacy policy link - this is set to true by default.

  • cookieDeclineButton - if you'd like a decline button to (ironically) write a cookie into the browser then set this to true.

  • cookieAcceptButton - set this to true to hide the accept button, its set to false by default

  • cookieResetButton - if you'd like a reset button to delete the accept or decline cookies then set this to true.

  • cookieOverlayEnabled - don't want a discreet toolbar? this makes the whole message into a 100% height

  • cookiePolicyLink - if applicable, enter the link to your privacy policy in here - this is as soon as cookieAnalytics is set to false.

  • cookieMessage - edit the message you want to appear in the cookie bar, remember to keep the {{cookiePolicyLink}} variable in tact so it inserts your privacy policy link.

  • cookieAnalyticsMessage - edit the message you want to appear, this is the default message.

  • cookieWhatAreTheyLink - edit the link for the 'What are Cookies' link.

  • cookieErrorMessage - edit the message you'd like to appear in place of the functionality

  • cookieNotificationLocationBottom - this is false by default, change it to true and the cookie notification bar will show at the bottom of the page instead, please note this will remain at the top for mobile and iOS devices and Internet Explorer 6.

  • cookieDisable - list elements comma separated in here that you want to disable, this will only work if cookieCutter is set to true.

  • cookieAcceptButtonText - you can change the text of the green accept button.

  • cookieDeclineButtonText - you can change the text of the red decline button.

  • cookieResetButtonText - you can change the text of the orange reset button.

  • cookieWhatAreLinkText - you can change the text of the "What are Cookies" link shown on Google Analytics message.

  • cookiePolicyPage - set this to true to display the message you want to appear on your privacy or cookie policy page.

  • cookiePolicyPageMessage - edit the message you want to appear on your policy page.

  • cookieDiscreetLink - false by default, set to true to enable

  • 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.

Just Analytics?

  • Options:
  • cookieAnalytics: true,
  • cookieAnalyticsMessage: "message",
  • cookieWhatAreTheyLink: '/insert-link/'

You have a privacy/cookie policy?

  • Options:
  • cookieAnalytics: false,
  • cookiePolicyLink: '/insert-link/',
  • cookieMessage: Message <a href="{{cookiePolicyLink}}" title="read about our cookies">read about them here</a>

Disable parts of your page and display a message?

  • Options:
  • cookieCutter: true,
  • cookieAnalytics: false,
  • cookiePolicyLink: '/insert-link/',
  • cookieDisable: '.divnamehere'

You want an explicit decline button?

  • Options:
  • cookieDeclineButton: true

You want an explicit cookie reset button?

  • Options:
  • cookieResetButton: true

You want a different message on your policy page?

  • Options:
  • cookiePolicyPage: true,
  • cookieDeclineButton: true,
  • cookiePolicyPageMessage: 'You can change the message here'

You want a really discreet box, which you can position?

  • Options:
  • cookieDiscreetLink: true,
  • cookieDiscreetPosition: "topright",
  • cookiePolicyLink: "/privacy-policy/"

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"
Clone this wiki locally