If you have installed the Instant pixel for Shopify and are not receiving product viewed events from Audiences, please manually add tracking directly to your website.
Please note that this only works if you are also use the Klaviyo app for Shopify.
- Proceed to the Shopify dashboard, and click on Online Store.
- Click on Edit code
- Proceed to your theme.liquid file
- Inside theme.liquid, locate the </title> line. Below this line, insert the following snippet of code
<script>
const manualInstantProduct = setInterval(() => {
if (window.item) {
window.InstantJS.track('PRODUCT_VIEWED', [
{
provider: 'KLAVIYO',
event: window.item,
},
]);
clearInterval(manualInstantProduct);
}
}, 500);
</script>
- Your theme.liquid should look like this:
- Click Save.
- Product Viewed events will now start manually firing to the Instant pixel. You will see Product Viewed start showing in integrations soon, such as Klaviyo.