Google CPC Campaign Tracking Issues

Hi,

I’m having issues tracking my Google Ads Campaigns in an on-premise Matomo install.

I’ve created a segment that’s filtered to Entry Page URLs that contain gad_source the query string parameter google ads adds.

I have quite a lot of traffic in that Segment and it’s all in “Search Engines” and “Google”.

I have got the following in my global tracker template on my Google Ads account:

&mtm_source=google&mtm_medium=cpc&mtm_campaign={_campaign}&mtm_group={_adgroup}&mtm_kwd={matchtype}-{keyword}&mtm_cid={campaignid}&mtm_placement={placement}&mtm_content={creative}

With custom parameters for campaign and adgroup being set hourly with a Google Ads script. When I check using URL testing on the campaigns in question I get URLs as I expect:

&mtm_source=google&mtm_medium=cpc&mtm_campaign=Search_|_Generic_|_Product_Type_|_Sizes_|_specific_size&mtm_group=Sizes_|_specific_size_|_price&mtm_kwd=-&mtm_cid=162008418&mtm_placement=&mtm_content=400090798451&gb=1

I’m not sure what to check next to find out why this is happening. Is there any way to see the full original URL that was the entry page for these Search Engine entries with a gad_source value on the query string so I can have a look and see what’s happened?

I’ve got some visits that have a Campaign ID and a Campaign Group and show a Source/Medium of Google/CPC with keywords, but they have no campaign name. Checking the URL preview for those campaigns in Google Ads, it’s definitely populated.

I’m looking for next steps for diagnosis really, so any suggestions appreciated.

I have resolved this.

Next diagnostic step was to check Diagnosic → config file and check the configuration of MarketingCampaignsReporting.

I had updated it at one point from an example to add a couple of terms we’re using to track campaigns from specific platforms. What I didn’t notice is the example I started from had removed mtm_campaign from the list of parameters to translate to campaign_name

I’m glad I worked it out, sad it was me being an idiot, but reassured it was me being an idiot :wink: