//Karthik Srinivasan

Product Engineer, CTO & a Beer Enthusiast
Experiments, thoughts and scripts documented for posterity.

Quirky Personal Projects

LinkedIn

Email me

Shopify Conversion/Shopping Cart pixel tracking custom script

Jan, 2018

Script example on how to track the conversion data.

Intended object:

{
      "transaction": "2646894",
      "amount": "699",
      "currency": "USD",
      "products": [
        {
          "sku": "BR0349P2434C",
          "price": "399",
          "size": "34C"
        },
        {
          "sku": "BR0349P0434C",
          "price": "399",
          "size": "34C"
        }
      ]
}

In shopify liquid template page for conversion:

For cart page tracking: