--- title: "Implement Live Tag in Shopify" slug: "implement-live-tag-in-shopify" description: "Learn how to implement the Quantcast Live Tag on your Shopify store and verify it with the Tag Inspector for accurate audience data collection." tags: ["Shopify", "Third Party", "Tagging", "Q Pixel"] updated: 2026-05-08T15:51:25Z published: 2026-05-08T15:51:25Z canonical: "help.quantcast.com/implement-live-tag-in-shopify" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.quantcast.com/llms.txt > Use this file to discover all available pages before exploring further. # Implement Live Tag in Shopify 1. Login to Shopify and select Settings > Customer Events in the left menu of the admin section. 2. Click Add Custom Pixel. 3. Enter a name for the pixel. 4. Copy the code below and paste it into the Shopify code box. Code: Implementing the Quantcast Live Tag on your Shopify store is simple. ```javascript // Load Quantcast SDK const script = document.createElement('script'); script.src = "https://secure.quantserve.com/quant.js"; script.async = true; script.type = "text/javascript"; document.head.appendChild(script); // Initialize Quantcast window._qevents = window._qevents || []; // Subscribe to Shopify events analytics.subscribe("page_viewed", (event)=>{  window._qevents.push({    "qacct": "p-*************",    "source": "shfy",    "labels": "_fp.event.PageView,_fp.event." + event.context.document.title,    "event": "refresh"  }); }); analytics.subscribe("product_added_to_cart", (event)=>{  window._qevents.push({    "qacct": "p-*************",    "source": "shfy",    "labels": "_fp.event.AddToCart",    "event": "refresh"  }); }); analytics.subscribe("checkout_completed", (event) => {  window._qevents.push({    "qacct": "p-*************",    "source": "shfy",    "labels": "_fp.event.Purchase Confirmation",    "orderid": event.data?.checkout?.order?.id,    "revenue": event.data?.checkout?.totalPrice?.amount,    "event": "refresh"  }); }); ``` 1. Make sure to update the placeholder in the "qacct" field to reflect your Quantcast P-Code. 2. Click Save > Connect Pixel Please refer to Shopify’s [Standard Events](https://shopify.dev/docs/api/web-pixels-api/standard-events#custom-customer-events) page for additional information. For a resource on building Shopify themes, see [Shopify's Cheat Sheet](https://www.shopify.ca/partners/shopify-cheat-sheet). ## **Verify tag implementation using the Quantcast Tag Inspector** The Quantcast Tag Inspector is a Google Chrome plugin that checks whether your Quantcast Tag and Audience Segments are implemented correctly. Install the Inspector to review your site's individual pages and ensure the audience segments are firing correctly. For more information, see the “Inspect Your Tag” help document. You are done! Please check the Tag Inspector to confirm that your tags collect data. If you do not see any activity, contact Quantcast Support or submit a Help Center request at [www.quantcast.com](http://www.quantcast.com/). For more information on tagging, see our [Tagging Overview](https://help.quantcast.com/v1/docs/pixel-tagging-overview) article. ## Related - [Live Tag Overview](/tagging-overview.md) - [Best Practices: Tagging by Vertical](/best-practices-tagging-by-vertical.md) - [Third-Party Tagging](/third-party-tagging.md)