How to add an EU cookies banner to your website without app in Shopify

  • by
cookies banner

In the Shopify app store, there are a lot of apps available for cookie banners. But sometimes apps increase site loading time, so in this article, you will see how you can add a cookies banner to your Shopify store.

cookies demo image

EU Cookies Law

Before jump into a tutorial on the implementation of the EU cookies banner, we would like to tell you a little bit about Cookies Law. In May 2014, The European Union implemented new legislation that expresses that all sites that use cookies must ask site users for permission to hold on to their information to enter the site. So on the off chance that you run a site in the European Union or if a part of your traffic comes from the EU, you should consider informing your site guests about the use of cookies on your site.

Lets jump to tutorial

As this tutorial include edit in code , so we highly recommend you to do only if you have some knowledge of coding, or hire a shopify expert for doing this. Follow these steps

  1. From you Shopify Admin go to Online Store >> Themes >> Actions >> Edit Code.
  1. In the Online code editor go to Snippets and click to Add New Snippet, give the title of snippet “shopifya-cookies-banner” and select Create Snippet. (follow picture)
  1. Paste this code in created snippet

just like attached picture

  1. Include recently added snippet to theme.liquid file, under the Layout section select theme.liquid and paste this code just before the closing of </body> tag.

just like attached picture

  1. Click save you’re all done. demo link password:12345

Leave a Reply

Your email address will not be published. Required fields are marked *