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
- Go to Online Store → Themes → Actions → Edit Code
- Open
theme.liquid - 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:
| Event | Shopify Page |
|---|---|
view_item | Product pages |
view_category | Collection pages |
add_to_cart | Cart additions |
begin_checkout | Checkout start |
purchase | Thank you page |
search | Search results |