Skip to main content

How to Track Google Ads Campaigns with Ghost Metrics

Ad campaign and conversion tracking are essential for optimising marketing strategies. With Ghost Metrics comprehensive features, you can track your Google Ads campaign performance, enabling you to continue measuring your campaigns effectively.

This guide describes the process of tracking Google Ads and PMax campaigns in Ghost Metrics and creating a segment to view only paid traffic.

Track Google Ads Campaigns in Ghost Metrics

By default, when you run Google Ads, Ghost Metrics does not automatically track them. Clicks on your Google Ads will be recorded as organic traffic from Google and as a result, paid and organic traffic are grouped together.

To ensure correct tracking of your Google Ads campaigns, specific tracking parameters must be added to your ad URLs. Ghost Metrics provides a Campaign URL builder to simplify this process.

  1. Log in to Ghost Metrics and open Acquisition > Campaign URL Builder.
  2. By using the campaign tracking parameters, you can send additional data to Ghost Metrics. It is recommended to use the Website URL and Campaign Name parameters; all other parameters are optional.
    Website URL: the full URL of the page where you want to send visitors.
    Campaign Name (mtm_campaign): the name of your ad campaign.
    Campaign Keyword (mtm_kwd): the keyword associated with this campaign.
    Campaign Source (mtm_source): the source of your campaign (e.g., Google).
    Campaign Medium (mtm_medium): the type of source (e.g., paid-search).
    Campaign Content (mtm_content): the content of your ad.
    Campaign ID (mtm_cid): a Campaign ID identifier for your ad or Click ID identifier.
  3. Click Generate URL and depending on the campaign parameters added, your campaign URL will look similar to this: https://your-website.com/?mtm_campaign=Campaign-Name&mtm_kwd=Your-Keyword&mtm_source=google&mtm_medium=paid-search&mtm_content=My-Ad-Headline&mtm_cid=ad12345

If each ad URL is fired by different keywords and associated with different campaigns or headlines, you can customise the campaign parameters for each URL. By using Tracking templates in Google Ads, each URL parameter can be automatically filled.

By default, Ghost Metrics detects URLs tagged with Google Analytics (GA) campaign parameters, so you do not need to update your existing GA campaign tracking URLs when using Ghost Metrics.

Adding tracking parameters to each URL manually can be time-consuming, particularly for managing a large number of ads. Google Ads offers tracking templates at the Account, Campaign or Ad Group level to streamline this process.

Set up an Account-level tracking template

  1. Open Google Ads and go to Settings > Account Settings.
  2. Define your tracking template pattern.
    For example: https://your-website.com/?url={lpurl}&mtm_campaign=AdWords&mtm_kwd=Your-Keyword&mtm_source=google&mtm_medium=paid-search&mtm_content=My-Ad-Headline
  3. This pattern applies to all URLs in your account if the domain is the same across all your ads. The URL parameter is mandatory.
  4. Instead of using static values for mtm_campaign and mtm_kwd, Google allows dynamic insertion.
    • For example: https://your-landing-page.com/?url={lpurl}&mtm_campaign={campaignid}&mtm_kwd={keyword}&mtm_source=google&mtm_medium=paid-search&mtm_content={creative}
    • The {keyword} placeholder is automatically replaced with the keyword, which fired the ad within your account. Learn more about dynamic tags supported by Google Ads.

Set up an Ad Group-level tracking template

You can define tracking templates at the Campaign, Ad Group or Ad-level and templates set at these levels take precedence over the Account-level template. With properly configured URLs, you can analyse your Google Ads traffic performance in Ghost Metrics when traffic is generated from those sources.

Track Google Ad conversions without a Google tag

Google Ads tracks metrics like impressions, clicks, cost-per-click (CPC), and click-through-rate (CTR), but these metrics do not provide insights into how your ads perform in terms of conversions.

Embedding a Google tag on your site is a common solution, but it may compromise privacy compliance by using third-party cookies. Ghost Metrics Advertising Conversion Export feature allows you to send conversion data to Google Ads with a gclid (Google Click Identifier).

The gclid is a parameter that Google Ads automatically appends to the ad’s URL. When a visitor clicks on the ad and converts (e.g., newsletter signup), Ghost Metrics sends the gclid and conversion data (e.g., conversion time, conversion value (if defined), conversion currency and conversion name) to Google Ads. An example URL displayed to the visitor: www.your-website.com/?gclid=321abc

Export conversion data

There are two ways to export conversion data to Google Ads:

  1. Manual upload: Download a conversion export in a CSV format and upload it to Google Ads.
  2. Scheduled import via HTTPS source URL: Download a unique link to add to your Google Ads Conversion Uploads and then schedule the import into Google Ads.
note

It can take up to three hours for Google Ads to display the detailed conversion data.

Advertising Conversion Export

The Ghost Metrics Advertising Conversion Export module supports conversion exports to Google Ads, Microsoft Advertising (Bing Ads) and Yandex Ads using each platform’s respective click ids. By connecting your marketing platform and Ghost Metrics through the conversion export feature, you create a very powerful and compliant method for tracking campaign performance.

Track Google Ads PMax Campaign

Google Ads Performance Max (PMax) campaigns are designed to maximise your advertising performance across your Google channels. Learn more about Performance Max campaigns on the official Google website.

Set up PMax campaign tracking parameters

To track PMax campaigns in Ghost Metrics, you need to use campaign tracking parameters similar to those used for Google Ads campaigns. These parameters allow Ghost Metrics to differentiate between the different campaigns, ads, and keywords.

  1. Log in to Ghost Metrics and open Acquisition > Campaign URL Builder.
  2. You can define the Website URL and Campaign name and optionally use the prefix PMax for the campaign name and medium and use any other optional parameters as required.
  3. Click Generate URL.
  4. When setting up your PMax campaign in Google Ads, add the tracking parameters generated from Ghost Metrics to the final URL of your ads.

Tracking PMax campaigns in Ghost Metrics

Once your PMax campaign is live and tracking configured, you can start monitoring your campaign in Ghost Metrics.

  1. Log in to Ghost Metrics and open Acquisition > Campaigns to view your PMax campaigns.
  2. You can create custom reports and segments to gain deeper insights into the channels where your PMax campaigns are driving the most value.

Create a Segment to view Paid Traffic only

Creating a segment in Ghost Metrics allows you to filter your analytics data and focus on specific types of traffic. To view only paid traffic from Google Ads, you can define a segment to report on this subset of data.

  1. From the Ghost Metrics dashboard, click on the Segment filter to expand the menu.
  2. Click Add New Segment and provide a descriptive name.
  3. Using an example URL and campaign parameters for a Google Ads campaign:
    https://your-website.com/?mtm_campaign=Season-Sale-2024&mtm_kwd=discounts&mtm_source=google-ads. If mtm_source=google-ads is consistently used for all Google Ads campaigns, the segment can be created based on the condition:
    Campaign source Is google-ads to track all visits from Google Ads.
    If you only wanted to track the campaign, define the segment based on the Campaign Name Is Season-Sale-2024.