All Collections
Setup
Additional Setup Resources
How to set up Standard URL parameters
How to set up Standard URL parameters

How to setup URL parameters for all of the ads you want to track with Cometly.

Updated over a week ago

๐Ÿ‘‹ Start Here

Important: Shopify, ClickBank, BuyGoods, and Maxweb have specific UTM setups. Please refer to the integration specific setup article for UTM setup instructions. View our Integrations in our help center here to find the help article for those integrations.

Correctly configuring your URL parameters is crucial for precise attribution in Cometly. Without proper setup, Cometly cannot track your events, meaning any ad lacking the correct URL parameters will not have its purchases tracked. By adhering to the following instructions, you can ensure your URL parameter setup is optimized for effective ad tracking with Cometly.

Setup URL Parameters on your Meta Ads

When you update your ad parameters your ads will go back into review for a very short period of time. Updating URL parameters is not considered a significant ad edit so learning will not get reset on yours ads. Please see the Meta resource article that outlines what are considered significant edits that will reset learning.

The following URL parameters are required on every Meta ad that you want to track with Cometly, you can also find the parameters in Setup under step 3 Setup URL parameters on your ads in Cometly.

comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}

Navigate to the Tracking section at the ad level and paste the Cometly Meta parameters into the URL Parameters box:

As mentioned in the setup video, though we recommend placing the Cometly Meta parameters in the Tracking section in the URL parameters box, however, you can place the parameters on the Website URL as an alternative.

  • If you have a link in your ad copy, you should not have parameters setup on the Website URL because any click on the URL in your ad copy will not have the parameters. You should only have parameters on your Website URL if you do not have a link in your ad copy.

Important: Ensure the parameters are in the URL parameters box or the Website URL, do not have the parameters in both places. It should only be in one place.

Appending To Existing URL Parameters On Your Ads

If you already have parameters inside the URL parameters box, you can simply append the Cometly parameters by using the '&' sign like in the example below:

If you already have parameters on your website URL, you can simply append the Cometly parameters by using the '&' sign like in the example below:

(Product Variant URL's) Appending Parameters To Variants In Your URL

Important: If there is another "?" in your Website URL (for example if you have a variant in your URL), that means you are already using UTMs, so you would need to switch the "?" to a "&" before adding it to the end of your Website URL.

Example:

If your Website URL is:

www.test.com?variant=123456

You need to add:

&comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}

Your final Website URL should look like this:

www.test.com?variant=123456&comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}

After you have completed adding the Cometly parameters to your ads, you can go ahead and publish your ads.

Setup URL Parameters on your Google Ads

Google Ads prioritizes tracking templates in a specific order: ad level, ad group level, and then campaign level. This means if you have a tracking template at the ad or ad group level, it can override your campaign level template, potentially causing tracking issues.

Before you begin, ensure you do not have any other tracking template set at the ad group or ad level in your Google Ads account for any of the campaigns that you want to track. View our help article to learn how to check the ad group or ad level for other tracking templates.

Itโ€™s required that you use the following tracking parameters for all of your Google campaigns. Please make sure that you use the correct campaign tracking template based on the campaign type.

Campaign Type: Search, Video, Display, Discovery

Cometly needs the following UTM parameter code attached to the end of every Website URL in the 'Tracking Template' section of each of your regular Google ad campaigns that are Search, Video, Display, or Discovery campaigns:

{lpurl}?comet_source=google&comet_network={network}&comet_campaign={campaignid}&comet_ad_group={adgroupid}&comet_ad_id={creative}&comet_keyword={keyword}

Campaign Type: Performance Max, Shopping

Cometly needs the following UTM parameter code attached to the end of every Website URL in the 'Tracking Template' section of each of your Performance Max or Shopping campaigns:

{lpurl}?comet_source=google&comet_network={network}&comet_campaign={campaignid}&comet_ad_group={adgroupid}&comet_ad_id={creative}&comet_keyword={keyword}&comet_type=smart

To set these up inside the Google Ads manager, navigate to Settings > Campaign Settings and select the campaigns that you want to track with Cometly. Then click Edit > Change tracking templates.

The instructions below are using the previous Google Ads manager design. If you are using the new design, please switch back for this setup by clicking Appearance > Use previous design in the top right:

Then you should see a box labeled New tracking template and this is where you will need to place the URL parameters listed above.

Once those parameters have been pasted, you can click "Apply" to apply those changes.

Setup URL Parameters on your TikTok Ads

Cometly needs the URL parameter code attached to the end of every Website URL in the "Destination page" section of each of your TikTok ads:

?comet_source=tiktok&comet_ad_id=__CID__

To set this up inside the TikTok Ads manager, navigate to the ad level and select an ad that you want to track with Cometly. There should be a section titled "Destination page" with a box for "Website URL".

Simply "copy" the above code (include the "?") and "paste" the code at the end of your Website URL in that section.

PLEASE NOTE: If there is another ? in your Website URL, that means you are already using UTMs, so you would need to switch the first "?" to a "&" before adding it to the end of your Website URL.

i.e. if your Website URL is

www.test.com?variant=12345667

then instead of

?comet_source=tiktok&comet_ad_id=__CID__

you would want to add

&comet_source=tiktok&comet_ad_id=__CID__

So your Final website URL would be

www.test.com?variant=12345667&comet_source=tiktok&comet_ad_id=__CID__

Now you can go ahead and publish your ad. As long as you use this setup process on EVERY ad, your tracking and attribution with Cometly for TikTok ads will be PERFECT.

Please reach out to support with any questions about setting up the URL parameters on your TikTok Ads.

Setup URL Parameters on your LinkedIn Ads

LinkedIn does not have dynamic parameters available so you need to manually set the parameters manually for the comet_campaign and comet_ad_id parameters on the Destination URL.

https://example.com?comet_source=linkedin&comet_campaign=224656903&comet_ad_id=241400993

comet_source=linkedin (should always be set to linkedin)

comet_campaign=XXXXX (should always be the LinkedIn Campaign ID)

comet_ad_id=XXXXX (should always be the LinkedIn Creative ID)

Finding the Campaign ID and Creative ID in LinkedIn Ads Manager

After your campaign has been published, you have to go back in and edit the Destination URL:
โ€‹

Finding the Creative ID

Each ad has it's own Creative ID. You can find the Creative ID by clicking into your ads. You will notice in the screenshot below that each ad has it's own ID, you must use each ID next to the red arrow for your comet_ad_id parameter.
โ€‹

Finding the Campaign ID

Each campaign has it's own Campaign ID. You can find the Campaign ID by clicking into your campaigns. You will notice in the screenshot below that each campaign has it's own ID, you must use the ID next to the red arrow for your comet_campaign parameter.
โ€‹

Did this answer your question?