Analytics
1.6K members online now
1.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

custom tracking parameter under universal ga

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Until october 2015 we used the old ga code for our statistics. In order to track some campaign-sources the following line had been inserted into the analytics script:  _gaq.push(['_setCampSourceKey', 'campaign']);

 

This way we were able to track different campaignsources like http://www.google.de/test/?campaign=idealo or http://www.google.de/test/?campaign=yahoo .  The results were listed under Sources ->(Other)    So every campaign had its own entry.


Then (as part of a relaunch) we switched to ga universal code, and the tracking code _gaq.push(['_setCampSourceKey', 'campaign']); was migrated to the supposed replacement   ga('set', 'campaignSource', 'campaign'); 

 

From this day on all the different campaign statistics fell down to ground line. It seems to me as if the function changed its behaviour. Now the results look like all source infos have been aggregated to the source "campaign". As if the request was not http://www.google.de/test/?campaign=idealo but http://www.google.de/test/?utm_source=campaign 


I wonder whether my observation is correct. And why did GA change its functionality, killing all the old custom tracking links. Is there another way to solve the custom parameter tracking problem? Could the Google Tag Manager solve the problem?

 

Kind regards,

Gerald

 

1 Expert replyverified_user

Re: custom tracking parameter under universal ga

Top Contributor
# 2
Top Contributor
Hi Gerald,

'campaignSource' is the source itself, not the parameter used for sources. I don't think there is a source-key setting in Universal Analytics any more.

I'm wondering - why you don't use standard utm tracking [1] for setting sources and campaign names as you like?

Christoph

[1] https://support.google.com/analytics/answer/1033867?hl=en

Re: custom tracking parameter under universal ga

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks Christoph. The unfortunate parameter selection has historical reasons. The campaign parameter has been used by another tracking tool, Analytics came in second. The old solution had the advantage of not changing dozends of Advertisement/Affiliate Tracking URLs. Saved a lot of effort.