Installing the Podsights Pixel on Shopify

The following is a simple way to install the Podsights Pixel in Shopify.

Many Shopify Themes have custom ways to add 3rd party JavaScript. Please talk to your Shopify admin or your developer to learn more about Shopify's capabilities. You can add the base JavaScript script to the theme.liquid like so:

Page View Event

  • Step 1
    • Select Edit Code from the Theme Actions in Online Store > Themes
  • Step 2
    • Select theme.liquid from the available files and add the install code (can be found here). Make sure to add your unique Pixel ID to the Your Pixel ID section of the code. 

Additional Scripts

  • In order to add the purchase event to the checkout confirmation page you'll need to navigate to Settings > Checkout
  • Then you'll need to find Additional Scripts in the Order Processing section.
  • You can then add the following code replacing YOUR PIXEL ID with your Pixel ID from Podsights:

    (function(w, d){
    var id='pdst-capture', n = 'script';
    if (!d.getElementById(id)){
    w.pdst = w.pdst || function() {(w.pdst.q = w.pdst.q || []).push(arguments);};
    var e = d.createElement(n); = id; e.async=1;
    e.src = '';
    var s = d.getElementsByTagName(n)[0];
    s.parentNode.insertBefore(e, s);
    w.pdst('conf', { key: 'YOUR PIXEL ID' });
    })(window, document);

    pdst("purchase", {
    value: /100,
    quantity: ([]).reduce(function(a,b){return a+b}),
    currency: "USD",
    order_id: "",
    discount_code : "",
  • Select Save and you are done!