We're excited for you to begin tracking your Facebook, Instagram, and TikTok ads to your Shopify store more effectively using Cometly 🎉

Below are step by step instructions for how to setup your Shopify store with Cometly so you can begin using this right away.

You can also find these instructions on your "Getting Started" page inside of your account.

Step 1: Connect your Integrations

Connect your Facebook account, TikTok account, and Shopify Store to your Cometly Space. In order for Cometly to track data, you must connect both of these integrations.

  • A) Connect your Facebook profile to Cometly and select your ad accounts you want to track

    • Navigate to the Profile Integrations page in Cometly, and click "Connect" in the box that reads "Connect your Facebook ad accounts".

      • Cometly will automatically connect to whichever Facebook profile is logged in on the browser that you are using.

    • Authorize the Cometly app to pull ad data from Facebook

    • Inside Space Settings > Integrations, select which ad accounts you want to connect to the Space

  • B) Connect your TikTok profile to Cometly and select your ad accounts you want to track

    • Navigate to the Profile Integrations page in Cometly, and click "Connect" in the box that reads "Connect your TikTok ad accounts".

      • Cometly will automatically connect to whichever TikTok profile is logged in on the browser that you are using.

    • Authorize the Cometly app to pull ad data from TikTok

    • Inside Space Settings > Integrations, first click on the TikTok symbol under "Manage Ad Integrations" and select which ad accounts you want to connect to the Space

  • C) Connect your Shopify store by copy and pasting your Shopify store URL into Cometly (Example: https://examplestore.myshopify.com)

  • Authorize the Shopify Cometly app to pull order data

Step 2: Setup the Comet Pixel on your Shopify store

(Click here for video instructions)

A) Add the base 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 Cometly Base code just before the closing body tag </body>

  5. Click "Save"

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

B) Add the conversion pixel to checkout "Additional Scripts"

  1. Navigate to "Settings" in Shopify.

  2. Select "Checkout"

  3. Scroll down to "Additional Scripts"

  4. Add the script 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*

Step 3: Setup the UTM parameters on your ALL of your ads

  • A) Setup the UTM Parameters on your Facebook Ads

    • Navigate to the Facebook ads manager, select the campaigns you want to track and then navigate to the ad level. There should be a section titled "Destination" with a box for "Website URL".

    • Paste this code ?utm_source=Facebook&utm_campaign={{ad.id}} onto the end of the Website URL of every ad in the campaigns you want to track

    • If you already use the above parameters or have a unique ad setup, please see the full article about setting up UTM Parameters on your Facebook ads, or contact support for help at support@cometly.com

  • B) Setup the UTM Parameters on your TikTok Ads

    • Navigate to the TikTok ads manager, select the campaigns you want to track and then navigate to the ad level. There should be a section titled "Destination" with a box for "Website URL".

    • Paste this code ?utm_source=Tiktok&utm_campaign=__CID__ onto the end of the Website URL of every ad in the campaigns you want to track

    • If you already use the above parameters or have a unique ad setup, please see the full article about setting up UTM Parameters on your TikTok ads, or contact support for help at support@cometly.com

  • Important: Cometly will not be able to track sales for an ad if that ad does not have the correct UTM parameters setup!

Step 4: Turn tracking on for your "existing campaigns" by using the Import Campaigns page.

For any campaigns that you had running BEFORE installing the Cometly app in Facebook or TikTok, you will need to toggle tracking ON inside of Cometly's "Import Campaigns" page to pull data for those ads into Cometly's Ads Manager.

Step 5: Begin to optimize your ads using the Cometly ads manager

Here is a video that walks through how to use the Cometly ads manager!

The Cometly ads manager will finally give you the accurate data that you’ve been dying to see! Navigate to the ads manager to see exactly which campaigns, ad sets and ads are generating results.


Having accurate real time data, will empower you with insights that will help you make better decisions on your ads and profit more!

If you want to learn more about User Account Roles, check out the video in this article!

If you want to learn more about Space Roles, check out the video in this article!

If you have multiple Shopify stores and need to create another Space, check out the video in this article!

If you have team member that needs to connect their ad account to your Space, check out the video in this article!

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

Did this answer your question?