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.

    [step title "How can we help you?"]

    [group group-adres-url]
    Website address:

    [/group]

    [group group-google-ads]
    Monthly Google Ads budget:

    Google Ads campaign goals:

    [/group]

    [group group-facebook-ads]
    Monthly Facebook Ads budget:

    Facebook Ads campaign goals:

    [/group]

    [group group-tiktok-ads]
    TikTok account name:

    Monthly TikTok Ads budget:

    TikTok Ads campaign goals:

    [/group]

    [group group-allegro-ads]
    Allegro account name:

    Monthly Allegro Ads budget:

    Allegro Ads campaign goals:

    [/group]

    [group group-seo]
    SEO campaign goals:

    [/group]

    [group group-marketing-automation-kanaly]
    Which Marketing Automation channels are relevant to you?

    [/group]

    [group group-marketing-automation]
    What are your Marketing Automation goals?

    [/group]

    [group group-social-media]
    Which social media channels are you interested in?

    [/group]

    [group group-social-media-facebook]
    Facebook account name or URL:

    [/group]

    [group group-social-media-instagram]
    Instagram account name or URL:

    [/group]

    [group group-social-media-tiktok]
    TikTok account name or URL:

    [/group]

    [group group-social-media-youtube]
    YouTube account name or URL:

    [/group]

    [group group-social-media-twitter]
    Twitter account name or URL:

    [/group]

    [group group-social-media-pinterest]
    Pinterest account name or URL:

    [/group]

    [group group-social-media-linkedin]
    Linkedin account name or URL:

    [/group]

    [group group-social-media-cele]
    What are the objectives of the Social Media cooperation?

    [/group]

    [group group-audyt]
    Select the scope of the audit:

    [/group]

    [group group-audyt-cele]
    What is the purpose of the audit (e.g. what are we to pay particular attention to, what objectives were to be met)?

    [/group]

    [group group-audyt-inne]
    Describe the scope of the audit:

    [/group]

    [step title "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 Space Ads Sp. z o.o. with registered office at Plac Bankowy 2; 00-095 Warsaw; registration: District Court for the Capital City of Warsaw in Warsaw, KRS number: 1011955; NIP: 5252938464; REGON: 524125730; share capital: PLN 10,000; "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.