Add a Cookie Consent Banner to your Vend E-Commerce Store


Latest update: - Jack Harrison-Sherlock

With the recent introduction of GDPR, you may be required to display a banner with a link to your cookie policy.

The vast majority of websites – including big names like Google and Facebook – choose some variation of the “Information” approach, i.e. they tell users they use cookies but continue to use them and link the user to a page detailing your cookie policy. Of course, in their case, their websites would be unusable without cookies.

We cannot guarantee an informational approach will be sufficient for your website, but unless you have special cause to believe otherwise, it is extremely likely. If in doubt, we recommend seeking legal advice from a professional.

For an example, you can include the below script into your theme.liquid file in Vend Ecommerce -> Design Select Theme -> Edit HTML/CSS -> theme.liquid and at line 9 copy and paste the script below.

This is provided by Cookie Consent, a free open source solution to the EU cookie law. If you wish to allow your customers to disable cookies, they also provide a similar solution on their website. Feel free to update the message and change the href link to link to your own cookie-policy.


<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#030000"
    },
    "button": {
      "background": "#000000"
    }
  },
  "theme": "edgeless",
  "content": {
    "message": "We use cookies to help make our website better. By visiting this site, you agree to our",
    "dismiss": "X",
    "link": "cookie policy",
    "href": "www.example.com/cookie-policy"
  }
})});
</script>



Final Step: Once you saved the theme, you will see the banner appear at the bottom of your eCommerce webpage.


Powered by Zendesk