---
title: How to add ProfitMetrics tracking parameters to your advertising platforms
description: ProfitMetrics attribution dashboard, tracking templates, Google Ads, Meta, Pinterest, Snapchat, TikTok, Microsoft Ads, Bing
---

[Skip to content](https://knowledge.profitmetrics.io/how-to-add-profitmetrics-attribution-parameters-to-your-advertising-platforms#main-content)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png)](https://knowledge.profitmetrics.io/?hsLang=en)

Open main navigation

Close main navigation

- [Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new)

[Contact Support](https://knowledge.profitmetrics.io/kb-ticket/new?hsLang=en)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge base](https://knowledge.profitmetrics.io/?hsLang=en)
2. [Attribution Dashboard](https://knowledge.profitmetrics.io/attribution-dashboard?hsLang=en)
3. [Tracking parameters](https://knowledge.profitmetrics.io/attribution-dashboard?hsLang=en#tracking-parameters)

# How to add ProfitMetrics tracking parameters to your advertising platforms

## Follow the steps below to add the ProfitMetrics tracking parameters to your click-through URLs.

When you add ProfitMetrics tracking parameters (via a final URL suffix, tracking template, or directly in URL parameters), the following values are passed into your final URL:

- **pm\_source** → The advertising platform name (e.g. meta, google, tiktok).
- **pm\_medium** → The general type of channel (e.g. email, display, paid).
- **pm\_campaign\_id** → The campaign ID from the ad platform (e.g. 63746352).
- **pm\_adgroup\_id** → The ad group ID from the ad platform (e.g. 7288467).
- **pm\_ad\_id** → The ad ID from the ad platform (e.g. 9374628).
- **pmg** → The Google Click ID (**gclid**) or Microsoft Click ID (**msclkid**).

These parameters power the **ProfitMetrics Attribution Dashboard**, ensuring each order is correctly linked to the channel, campaign/ad set, and ad. Set them once at the highest practical level (e.g. account or campaign) so all lower levels automatically inherit them.

### **About the pmg parameter**

ProfitMetrics also adds the **gclid** or **msclkid** into the pmg parameter, alongside the standard gclid= or msclkid= values automatically applied by auto-tagging.

This provides a safeguard in cases where browsers strip tracking parameters from URLs (for example, in Safari Private Browsing. With pmg, attribution can still work even if the original gclid or msclkid is removed.

### How to find the tracking parameters in ProfitMetrics

 

### **Google Ads**

**Where:** [How to add a Final URL suffix](https://support.google.com/google-ads/answer/9054021)

**Final URL suffix:**

`pm_source=google&pm_medium=cpc&pm_campaign_id={campaignid}&pm_adgroup_id={adgroupid}&pm_ad_id={creative}&pmg={gclid}`

The below example shows how the final URL suffix can be added at account level (recommended)

**![](https://knowledge.profitmetrics.io/hs-fs/hubfs/image-png-Sep-25-2025-04-49-38-9929-PM.png?width=670&height=464&name=image-png-Sep-25-2025-04-49-38-9929-PM.png)**

### **Microsoft Ads (Bing)**

**Where:** Campaigns \> Settings \> Account level options

**Final URL suffix:**

`pm_source=microsoft&pm_medium=cpc&pm_campaign_id={CampaignId}&pm_adgroup_id={AdGroupId}&pm_ad_id={AdId}&pmg={msclkid}`

![](https://knowledge.profitmetrics.io/hs-fs/hubfs/image-png-Sep-25-2025-04-58-16-2100-PM.png?width=670&height=434&name=image-png-Sep-25-2025-04-58-16-2100-PM.png)

### **Meta (Facebook & Instagram)**

**Where:** Ad-level **URL Parameters** field.

**URL paratmeters:**

`pm_source=meta&pm_medium=paid&pm_campaign_id=&pm_adset_id=&pm_ad_id=`

 

Or alternatively, add the parameters individually to the 'Build a URL parameter' section:

![Screenshot 2025-09-26 at 08.28.15](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202025-09-26%20at%2008.28.15.png?width=670&height=716&name=Screenshot%202025-09-26%20at%2008.28.15.png)

### **TikTok Ads**

**Where:** Ad-level **Build URL parameters** → **Custom parameters ([click here for a guide](https://ads.tiktok.com/help/article/how-to-add-url-parameters-to-your-website-url-in-tiktok-ads-manager#:~:text=How%20to%20manually%20add%20URL%20parameters%20to%20your%20website%20URL%20in%20TikTok%20Ads%20Manager))**

**Custom parameters:**

`pm_source=tiktok&pm_medium=paid&pm_campaign_id=__CAMPAIGN_ID__&pm_adset_id=__AID__&pm_ad_id=__CID__`

 

### **Pinterest Ads**

**Where: Campaign/Ad URL tracking / Parameter settings (or Ad “Destination link” → URL parameters). [Click here for a guide](https://help.pinterest.com/en-gb/business/article/add-url-parameters-to-your-ads#:~:text=automatic%20URL%20parameters-,Log%20in%20to%20your%20Pinterest%20business%20account,-Click%20on%C2%A0)**

**URL parameters:**

`pm_source=pinterest&pm_medium=paid&pm_campaign_id={campaignid}&pm_adset_id={adgroupid}&pm_ad_id={adid}`

 

### **Snapchat Ads**

**Where:** Ad (or catalog link) URL → append macros / parameters ([click here for a guide](https://businesshelp.snapchat.com/s/article/catalog-parameters))

**Parameters:**

`pm_source=snapchat&pm_medium=paid&pm_campaign_id=&pm_adset_id=&pm_ad_id=`

 

 

- [Getting Started](https://knowledge.profitmetrics.io/getting-started?hsLang=en#main-content)

    - [Learn the Basics](https://knowledge.profitmetrics.io/getting-started?hsLang=en#learn-the-basics)
    - [Prepare for Onboarding](https://knowledge.profitmetrics.io/getting-started?hsLang=en#prepare-for-onboarding)
    - [Account Setup](https://knowledge.profitmetrics.io/getting-started?hsLang=en#account-setup)
- [E-commerce Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#main-content)

    - [Shopify](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopify)
    - [WooCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#woocommerce)
    - [Magento](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#magento)
    - [PrestaShop](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#prestashop)
    - [BigCommerce](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#bigcommerce)
    - [Shopware](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#shopware)
    - [DanDomain & Related](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#dandomain-related)
    - [Universal Integration (Clientside)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-clientside)
    - [Universal Integration (Server-side Hybrid)](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#universal-integration-server-side-hybrid)
    - [Other Platforms](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#other-platforms)
    - [Developer Documentation](https://knowledge.profitmetrics.io/e-commerce-platforms?hsLang=en#developer-documentation)
- [Ad Channels](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#main-content)

    - [Google Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-ads)
    - [Meta (Facebook/Instagram)](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#meta-facebook-instagram)
    - [Microsoft Bing Ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#microsoft-bing-ads)
    - [Google Analytics 4](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#google-analytics-4)
    - [Partner-ads](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#partner-ads)
    - [Other Channel Configuration](https://knowledge.profitmetrics.io/ad-channels?hsLang=en#other-channel-configuration)
- [Tracking & Conversion Setup](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#main-content)

    - [Overview](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#overview)
    - [Conversion Booster for Google Ads](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-google-ads)
    - [Conversion Booster for Meta](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-for-meta)
    - [Conversion Booster Custom Pixels](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#conversion-booster-custom-pixels)
    - [Enhanced Conversions](https://knowledge.profitmetrics.io/tracking-conversion-setup?hsLang=en#enhanced-conversions)
- [Shopping Booster](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#main-content)

    - [Overview & Setup](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#overview-setup)
    - [Supplemental Feeds](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#supplemental-feeds)
    - [Campaigns & Labels](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#campaigns-labels)
    - [Troubleshooting](https://knowledge.profitmetrics.io/shopping-booster?hsLang=en#troubleshooting)
- [Product Feed & Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#main-content)

    - [Product Feed](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#product-feed)
    - [Shipping & Payment Costs](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#shipping-payment-costs)
    - [Expenses](https://knowledge.profitmetrics.io/product-feed-costs?hsLang=en#expenses)
- [Dashboard, Orders & Reporting](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#main-content)

    - [Dashboard & Orders](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#dashboard-orders)
    - [Looker Studio](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#looker-studio)
    - [Google BigQuery](https://knowledge.profitmetrics.io/dashboard-orders-reporting?hsLang=en#google-bigquery)
- [Account & Billing](https://knowledge.profitmetrics.io/account-billing?hsLang=en#main-content)

    - [Users & Access](https://knowledge.profitmetrics.io/account-billing?hsLang=en#users-access)
    - [Billing & Invoices](https://knowledge.profitmetrics.io/account-billing?hsLang=en#billing-invoices)
- [Privacy & Consent](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#main-content)

    - [GDPR](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#gdpr)
    - [Consent Management Platforms](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#consent-management-platforms)
    - [Google Consent Mode](https://knowledge.profitmetrics.io/privacy-consent?hsLang=en#google-consent-mode)
- [For Agencies](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#main-content)

    - [Getting Started as an Agency](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#getting-started-as-an-agency)
    - [Agency Certification](https://knowledge.profitmetrics.io/for-agencies?hsLang=en#agency-certification)
- [Shopify](https://knowledge.profitmetrics.io/shopify?hsLang=en)
- [PrestaShop](https://knowledge.profitmetrics.io/prestashop?hsLang=en)
- [Google Ads](https://knowledge.profitmetrics.io/google-ads?hsLang=en#main-content)

    - [troubleshoot](https://knowledge.profitmetrics.io/google-ads?hsLang=en#troubleshoot)
- [Meta (Facebook / Instagram)](https://knowledge.profitmetrics.io/meta-facebook-instagram?hsLang=en)
- [Shopping Booster for Google Ads](https://knowledge.profitmetrics.io/shopping-booster-for-google-ads?hsLang=en)
- [Uncategorized](https://knowledge.profitmetrics.io/uncategorized?hsLang=en)
- [Billing](https://knowledge.profitmetrics.io/billing?hsLang=en)
- [Google Sheets](https://knowledge.profitmetrics.io/google-sheets?hsLang=en)
- [Attribution Dashboard](https://knowledge.profitmetrics.io/attribution-dashboard?hsLang=en#main-content)

    - [Tracking parameters](https://knowledge.profitmetrics.io/attribution-dashboard?hsLang=en#tracking-parameters)
- [Account](https://knowledge.profitmetrics.io/account?hsLang=en)
- [Ideal Shop](https://knowledge.profitmetrics.io/ideal-shop?hsLang=en)
- [Returns](https://knowledge.profitmetrics.io/returns?hsLang=en)

[![ProfitMetrics logo black version](https://knowledge.profitmetrics.io/hs-fs/hubfs/pm_logotype_blue.png?width=193&height=28&name=pm_logotype_blue.png "ProfitMetrics logo black version")](https://profitmetrics.io)

<https://www.facebook.com/ProfitMetrics/> <https://podcasts.apple.com/> [mailto:support@profitmetrics.io](mailto:support@profitmetrics.io)

Copyright © 2026, ProfitMetrics ApS