Capture UTM and CID parameters in AA

leep71886616

28-11-2016

Hi All, 

some of the campaigns our company runs gets tagged with GA based UTM codes instead of CID! 

I would like to capture both in AA in the s.campaign variable.How can i do this? Below is what i currently have

s.campaign = s.Util.getQueryParam('cid');

What would i need to add for it to capture a URL that looks like,

utm_source=facebook&utm_medium=cpc&utm_campaign=gew&utm_content=gew-fb-gravitylight-p2-global

And what if not all campaigns have the "utm_content=", can i add something like a utm_* ?

Thanks,

Lee

Answers (0)