How to fix googleads.g.doubleclick.net sources and tpc.googlesyndication.com in Google Analytics

On most Google Analytics accounts, our customers see traffic sources that for many professionals may not be clear in understanding and conducting efficient analytics using source/medium sharing. Of course, we are talking about googleads.g.doubleclick.net and tpc.googlesyndication.com.

Our solution

If you want to verify revenue and have more accurate data from advertising campaigns, it’s a good idea to assign these traffic sources to Google paid campaigns (google/cpc). According to the article “References come from the address googleads.g.doubleclick.net or tpc.googlesyndication.com” – this is traffic from the Google Ads campaign and Google Ad Manager.

It is worth noting, however, that the solution to the problem, contained in the article from Google, did not work for our customers. Although auto-tagging was enabled, the above sources in the reports still happened.

Solution? Filters!

Below I would like to present in a few steps how to add the above mentioned sources to “google/cpc”. This is not ideal because Google Analytics will not recognize the exact campaign, but only the source and medium. However, this will help minimize negative situations and avoid assigning these transactions to inappropriate sources.

What filters to use?

Change the medium to “cpc”

  1. Go to Filters in Google Analytics administration.
  2. Add a new filter with a name, e.g. “googleads.g.doubleclick.net / referral – medium“.
  3. Set the filter type to“Custom”.
  4. Click on “Advanced“:
    1. “Field A -> Extract A” select “Campaign Source” and paste “googleads.g.doubleclick.net“.
    2. “Field B -> Extract B” select“Campaign Medium” and paste “referral“.
    3. “Output To -> Constructor” select “Campaign Medium” and paste “cpc“.
    4. Checkboxes “Field A Required“, “Field B Required” and  “Override Output Field” should be selected.
  5. Save the filter.

Repeat the action with the inclusion of “tpc.googlesyndication.com”

  1. Go to Filters in Google Analytics administration.
  2. Add a new filter with a name, e.g. “tpc.googlesyndication.com / referral – medium“.
  3. Set the filter type to“Custom”.
  4. Click on “Advanced“:
    1. “Field A -> Extract A” select “Campaign Source” and paste “tpc.googlesyndication.com“.
    2. “Field B -> Extract B” select“Campaign Medium” and paste “referral“.
    3. “Output To -> Constructor” select “Campaign Medium” and paste “cpc“.
    4. Checkboxes “Field A Required“, “Field B Required” and  “Override Output Field” should be selected.
  5. Save the filter.

After following the above steps instead of “googleads.g.doubleclick.net/referral” and “tpc.googlesyndication.com/referral” Google Analytics will present in the reports “googleads.g.doubleclick.net / cpc” and “tpc.googlesyndication.com / cpc”, which is not yet a total solution.

Change the source to “google”

  1. Go to Filters in Google Analytics administration.
  2. Add a new filter with a name, e.g. “googleads.g.doubleclick.net – source“.
  3. Set the filter type to“Custom”.
  4. Click on “Search and replace“:
    1. Filter Field” set to “Campaign Source”.
    2. In the “Search String”  paste “googleads.g.doubleclick.net“.
    3. In the“Replace String” paste “google”.
    4. You can verify the data after you save the filter.
  5. Save the filter.

Repeat the action with the inclusion of “tpc.googlesyndication.com”

  1. Go to Filters in Google Analytics administration.
  2. Add a new filter with a name, e.g. “tpc.googlesyndication.com – source“.
  3. Set the filter type to“Custom”.
  4. Click on “Search and replace“:
    1. Filter Field” set to “Campaign Source”.
    2. In the “Search String”  paste “tpc.googlesyndication.com“.
    3. In the“Replace String” paste “google”.
    4. You can verify the data after you save the filter.
  5. Save the filter.

Thats’ all! 

Contact me if you would like to find out more about our services.

Rafal Chojnacki
Digital Marketing Strategist
Book a consultation
[email protected]

Fill in the brief to receive a dedicated offer.

    How can we help you?

    Website address:
    Monthly Google Ads budget:

    Google Ads campaign goals:

    Monthly Facebook Ads budget:

    Facebook Ads campaign goals:

    TikTok account name:

    Monthly TikTok Ads budget:

    TikTok Ads campaign goals:

    Allegro account name:

    Monthly Allegro Ads budget:

    Allegro Ads campaign goals:

    SEO campaign goals:
    Which Marketing Automation channels are relevant to you?
    What are your Marketing Automation goals?
    Which social media channels are you interested in?
    Facebook account name or URL:
    Instagram account name or URL:
    TikTok account name or URL:
    YouTube account name or URL:
    Twitter account name or URL:
    Pinterest account name or URL:
    Linkedin account name or URL:
    What are the objectives of the Social Media cooperation?
    Select the scope of the audit:
    What is the purpose of the audit (e.g. what are we to pay particular attention to, what objectives were to be met)?
    Describe the scope of the audit:
    How can we get in touch?

    Name*

    Business e-mail*

    Company name*

    The data provided by you in the above contact form and in further communication are processed by Rafał Chojnacki (company: SPACE ADS RAFAŁ CHOJNACKI; address: Plac Bankowy 2, 00-095 Warsaw; tax ID number: 6182171399; "SPACE ADS") for the purpose of direct marketing of SPACE ADS services.

    SPACE ADS processes them from the moment you give your consent by pressing the “Send” button until you are presented with a tailored commercial offer. You can withdraw your consent to contact or processing your personal data at any time, e.g. by writing to [email protected] More information, including concerning your rights, can be found in the Privacy Policy.