Adding Usermaven to Shopify
In this guide, you will learn how to add the Usermaven tracking pixel to your Shopify store.
- Log in to your Shopify dashboard and click on Sales Channels > Online Store > Themes in the left-hand side menu.
- Click on the hamburger menu icon next to your current theme, and select "Edit code" from the drop-down menu.
- You should now see a code editor. Click on theme.liquid under 'Layout' in the left sidebar, as shown in the image below:
- Navigate until you find the closing head tag. Paste your snippet just before that tag, as shown in the image below:
Your Usermaven tracking script code should resemble the following:
<script src="https://t.usermaven.com/lib.js"
data-key="API_KEY"
data-tracking-host="https://events.usermaven.com"
data-autocapture="true"
data-privacy-policy="strict"
defer>
</script>
<script>window.usermaven = window.usermaven || (function(){(window.usermavenQ = window.usermavenQ || []).push(arguments);})</script>;
To access your exact tracking snippet code, follow these steps:
- Log in to your Usermaven account.
- Navigate to the Workspace Setup section.
- Locate the JavaScript snippet in the Add Tracking Pixel section. Copy it and paste it into Shopify as explained above.
- Click on the "Save" button.
That's it! Now, your Shopify store will begin sending important data to your Usermaven workspace. To verify, you can go to your Usermaven account and check if the stats are being tracked.