All Collections
Getting Started
Shopify
Shopify: Step 2 - Install the Cometly Pixel on your store
Shopify: Step 2 - Install the Cometly Pixel on your store
Instructions for setting up Cometly's advanced tracking pixel on your Shopify store
Tom King avatar
Written by Tom King
Updated over a week ago

*Please note your codes will look slightly different from the codes in the video above*

Step 1: Add the 'Base Code' of the Comet Pixel to theme before the closing body tag

  1. Navigate to "Online Store" in Shopify.

  2. Select "Actions" dropdown, and click "Edit Code"

  3. Select "theme.liquid" dropdown, and find the closing body tag </body>

  4. Paste the Comet Pixel 'Base Code' just before the closing body tag </body>

  5. Click "Save"

  6. Repeat this step for any other layouts that begin with "theme." and end with ".liquid", i.e. if you are using pagefly or gempages, you likely have other layouts that you will need to add the Comet Pixel base code to just before the closing </body> tag.

*Please note: your code will look slightly different from the code in the screenshot*

Step 2: Add the 'Conversion Code' of the Comet Pixel to checkout "Additional Scripts"

  1. Navigate to "Settings" in Shopify.

  2. Select "Checkout"

  3. Scroll down to "Additional Scripts"

  4. Add the Comet Pixel 'Conversion Code' to "Post Purchase Page" and "Order Status Page"

  5. Click "Save" at the bottom.

*Please note: your code will look slightly different from the code in the screenshot*

If you do not see a box for "Post-purchase page," do not worry. This is only for stores with an app that uses a Post-purchase page, like Zipify.

Your Cometly Pixel is now installed! You can navigate back to the Getting Started page and mark Step 2 as "complete", and you can move on to Step 3 - Setup UTM parameters on your ads.

If you have any questions please email support@cometly.com

Did this answer your question?