Shopify Integration

By making a few small changes on Shopify, it will be possible to make your site GDPR compliant with Elmo

Step 1: Enable GDPR on Shopify

First, we enable the Customer Privacy option in Online Shop > Preferences by logging into Shopify.
This way, based on the user's consent on the banner, you can automatically block cookies and trackers installed directly by Shopify or by GDPR-compliant Shopify plugins/apps.

More info on this link

Step 2: Insert the cookie banner

After generating the Elmo banner, copy the script indicated in the banner configuration section of the site you have scanned.
You now have two ways to insert the Elmo script into your site:
  • Use a plugin to insert the script you copied as the first element of the <head> of your Shopify shop. Plugins can be found in the Shopify app store 
  • Manually edit your theme and insert the script in the theme.liquid file.
To edit your theme manually, you need to go to Shopify > Themes and select Customise on the theme you want to edit.

A screen similar to this will appear. Click on the three dots next to the theme name and then on Edit Code.

We are now in the section with the Shopify theme code. From the side menu, click Layout > theme.liquid.
Paste the Elmo banner code immediately below the <head> tag (as highlighted in the photo), test it by clicking on preview in the top right, and save the theme when finished.

If you use Google Analytics from Shopify, you must go to Online Shop > Preferences and under Google Analytics select Use Advanced E-commerce. This will ensure that Analytics respects the user's consent automatically.

Congratulations, Elmo is now correctly configured with Shopify!