If you run campaigns across Google Ads, Bing Ads and simultaneously getting organic traffic from search engines or social media, you will face some real tracking and attribution challenges.
There are many reasons for that but one in particular:

Google Ads and Bing Ads have their own set of URL parameters, especially the GCLID and MSCLID which they use for attribution purposes.


For this particular reason, we highly recommend using Google Tag Manager (GTM)

What is Google Tag Manager (GTM)

Google Tag Manager is a free tool provided by Google. It allows allows you to run tags on your site and fire each of those tags according to certain triggering rules.

We recommend using GTM for many reasons, but particularlly when you run campaigns, from various traffic sources and ad networks, and use the organic tracking script to track the campaigns.

A very standard use case would be to run the same campaigns on Google Ads and Bing Ads.

In addition, since it is very likely that your site also receives organic traffic from search and social media, GTM will let you differentiate the the performances of each of your traffic sources and campaigns.

To simplify the setup process, we have created a template that you can import into your GTM account.

One you have modified the template according to the instructions, you will be able to import it to your GTM acccount.

Prerequesites to enable this integration:

  • You have a Google Tag Manager account and you have some basic understanding of how to add it to your site adn how it works. If you're not sure, you should watch some videos on youtube or check the GTM support site.
  • You have access to the source code of your site so you can add your GTM script. If you run a wordpress site, there are plugins that allow you to add GTM.
  • You have created your campaigns in TrackingDesk according to the predefined traffic sources. If you create a custom traffic source and used different parameters, the template will not work.
  • Once you've followed all the steps, you can run the tag on "preview" to see how GTM triggers the different scripts.

Assuming you have created your Google ads, Bing and Organic campaigns in TrackingDesk, you can start updating the template.

Step #1 Across the template, you will see several TrackingDesk organic script.
Step #2 Replace the "replace_campaign_id" with the campaign ID from your trackingdesk account and according to each campaign google / bing / organic
Step #3 Follow the order of the campaigns since the triggeers that will fire the scripts according to the traffic sources are set in this order too.
Step #4 Upload the template in your workspace / GTM.
Follow the guidelines provided in the Google Tag Mager help documentation

{
    "exportFormatVersion": 2,
    "exportTime": "2019-02-27 10:33:24",
    "containerVersion": {
        "path": "accounts/4109455341/containers/11182942/versions/0",
        "accountId": "4109455341",
        "containerId": "11182942",
        "containerVersionId": "0",
        "container": {
            "path": "accounts/4109455341/containers/11182942",
            "accountId": "4109455341",
            "containerId": "11182942",
            "name": "tracking.school",
            "publicId": "GTM-NQWHW8X",
            "usageContext": [
                "WEB"
            ],
            "fingerprint": "1551263543092",
            "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/4109455341/containers/11182942/workspaces?apiLink=container"
        },
        "tag": [
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "tagId": "1",
                "name": "TrackingDesk Adwords",
                "type": "html",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "html",
                        "value": "<script src=\"//servedbytrackingdesk.com/ct/ct-qs-extra.js?c=REPLACE_CAMPAIGN_ID\"></script>"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "supportDocumentWrite",
                        "value": "false"
                    }
                ],
                "fingerprint": "1551263201537",
                "firingTriggerId": [
                    "5"
                ],
                "tagFiringOption": "ONCE_PER_EVENT"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "tagId": "2",
                "name": "TrackingDesk Bing",
                "type": "html",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "html",
                        "value": "<script src=\"//servedbytrackingdesk.com/ct/ct-qs-extra.js?c=REPLACE_CAMPAIGN_ID\"></script>"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "supportDocumentWrite",
                        "value": "false"
                    }
                ],
                "fingerprint": "1551263291498",
                "firingTriggerId": [
                    "6"
                ],
                "tagFiringOption": "ONCE_PER_EVENT"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "tagId": "3",
                "name": "TrackingDesk Organic",
                "type": "html",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "html",
                        "value": "<script src=\"//servedbytrackingdesk.com/ct/ct-qs-extra.js?c=REPLACE_CAMPAIGN_ID\"></script>"
                    },
                    {
                        "type": "BOOLEAN",
                        "key": "supportDocumentWrite",
                        "value": "false"
                    }
                ],
                "fingerprint": "1551263543092",
                "firingTriggerId": [
                    "7"
                ],
                "tagFiringOption": "ONCE_PER_EVENT"
            }
        ],
        "trigger": [
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "triggerId": "5",
                "name": "Adwords Trigger",
                "type": "PAGEVIEW",
                "filter": [
                    {
                        "type": "CONTAINS",
                        "parameter": [
                            {
                                "type": "TEMPLATE",
                                "key": "arg0",
                                "value": "{{Page URL}}"
                            },
                            {
                                "type": "TEMPLATE",
                                "key": "arg1",
                                "value": "utm_source=google"
                            }
                        ]
                    }
                ],
                "fingerprint": "1551263191469"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "triggerId": "6",
                "name": "Bing Trigger",
                "type": "PAGEVIEW",
                "filter": [
                    {
                        "type": "CONTAINS",
                        "parameter": [
                            {
                                "type": "TEMPLATE",
                                "key": "arg0",
                                "value": "{{Page URL}}"
                            },
                            {
                                "type": "TEMPLATE",
                                "key": "arg1",
                                "value": "utm_source=bing"
                            }
                        ]
                    }
                ],
                "fingerprint": "1551263264482"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "triggerId": "7",
                "name": "Organic",
                "type": "PAGEVIEW",
                "filter": [
                    {
                        "type": "CONTAINS",
                        "parameter": [
                            {
                                "type": "TEMPLATE",
                                "key": "arg0",
                                "value": "{{Page URL}}"
                            },
                            {
                                "type": "TEMPLATE",
                                "key": "arg1",
                                "value": "utm_source"
                            },
                            {
                                "type": "BOOLEAN",
                                "key": "negate",
                                "value": "true"
                            }
                        ]
                    }
                ],
                "fingerprint": "1551263534447"
            }
        ],
        "builtInVariable": [
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "type": "PAGE_URL",
                "name": "Page URL"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "type": "PAGE_HOSTNAME",
                "name": "Page Hostname"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "type": "PAGE_PATH",
                "name": "Page Path"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "type": "REFERRER",
                "name": "Referrer"
            },
            {
                "accountId": "4109455341",
                "containerId": "11182942",
                "type": "EVENT",
                "name": "Event"
            }
        ],
        "fingerprint": "0",
        "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/4109455341/containers/11182942/versions/0?apiLink=version"
    }
}

Did this answer your question?