How to use CookiePopup in Shopify

How to insert a Cookie Popup in Shopify

How to insert a script in Shopify header file

Shopify logo

If you want to add a custom script to the header of your Shopify store, you can follow these steps:

  1. Log in to your Shopify account and go to the Online Store > Themes section.
  2. Find the theme you want to edit and click the "Actions" button on the right-hand side.
  3. Select "Edit code" from the dropdown menu.
  4. In the left-hand sidebar, click on the "theme.liquid" file under the "Layout" folder.
  5. Find the </head> tag in the theme.liquid file. This is where you will insert your script.
  6. If your site is based in europe use this script you need on your page:
    If your site is based in the United States use this script you need on your page:
  7. Paste your script code just before the </head> tag.
  8. Click the "Save" button to save your changes.

Note: It's important to be careful when editing the theme.liquid file as any errors or typos in your code can cause issues with your website. Make sure to backup your website before making any changes to your website files.