Documentation

Everything you need to know for quick Consentio implementation

Shopify Integration

Install Consentio on your Shopify store

Installation via theme.liquid

Consentio goes into the theme code. Follow these steps:

  1. Log in to your Shopify admin
  2. Go to Online Store → Themes → Actions → Edit code
  3. Find the theme.liquid file in the Layout section
  4. Insert the following code right after the opening <head> tag, above any Google tag
  5. Save your changes
HTML
<script src="https://consentio.cz/widget/YOUR_KEY/consentio.min.js" async></script>
Tip: You can find the widget key in the Consentio dashboard for your website under Installation.

Blocking Scripts in Shopify

Scripts you paste into the theme code can be marked the same way as on any other website. A script that a Shopify app or a Customer events pixel adds by itself cannot be marked, so Consentio does not hold it back.

HTML
<!-- Blocking Klaviyo -->
<script type="text/plain" data-category="marketing"
  src="https://static.klaviyo.com/onsite/js/klaviyo.js">
</script>

<!-- Blocking Facebook Pixel -->
<script type="text/plain" data-category="marketing">
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', 'YOUR_PIXEL_ID');
  fbq('track', 'PageView');
</script>

Shopify Markets and Multilingual Support

The banner reads the lang attribute on the <html> element. Shopify Markets sets this attribute based on the customer's region.

Tip: Enable every language of your store in Banner Design → Texts (Pro and Agency). The banner shows only the languages you have enabled; Free and Solo show one language.

Compatible Apps

App Category Blocking Method
Google Analytics 4 analytics Google Consent Mode signals (tag in the theme below the Consentio code) or type="text/plain"
Facebook Pixel marketing type="text/plain"
Klaviyo marketing type="text/plain"
TikTok Pixel marketing type="text/plain"
Hotjar analytics type="text/plain"
WordPressShoptet