Skip to content
DocsIntegrationsShopify Integration
Integrations

Shopify Integration

Overview

Complete GDPR compliance and analytics for Shopify stores. Automatic e-commerce event tracking included.

Difficulty: Easy

Add code to theme.liquid and you're ready to go.

Installation

Edit Theme Code

  1. Go to Online Store → Themes → Actions → Edit Code
  2. Open theme.liquid
  3. Add the snippet before </head>
liquid
<!-- CONSETO GDPR & Analytics -->
<script src="https://www.conseto.io/dist/conseto.min.js"></script>
<script>
  document.addEventListener('DOMContentLoaded', async function() {
    const conseto = await Conseto.init({
      clientId: 'YOUR_CLIENT_ID',
      language: '{{ request.locale.iso_code | slice: 0, 2 | default: "en" }}',
      theme: 'dark',
      autoTrackEcommerce: true,
      brandName: '{{ shop.name }}',
      privacyPolicyUrl: '/pages/privacy-policy',
      cookiePolicyUrl: '/pages/cookie-policy'
    });

    window.conseto = conseto;
  });
</script>

Automatic Event Tracking

CONSETO automatically tracks these Shopify events:

EventShopify Page
view_itemProduct pages
view_categoryCollection pages
add_to_cartCart additions
begin_checkoutCheckout start
purchaseThank you page
searchSearch results
Documentation — CONSETO | CONSETO