setCampaignNameKey


#1

hello,

I’m trying to customize the url key to track campaigns. So I added this to my js code :


piwikTracker.setCampaignNameKey('cp');
piwikTracker.setCampaignKeywordKey('kw');

I also added thoses line to the config.ini.php file :


[Tracker]
campaign_var_name="cp"
campaign_keyword_var_name="kw"

All this as described here : How to - Analytics Platform - Matomo

It is not working, the javascript code is returning an error “piwikTracker.setCampaignNameKey is not a function” … in fact I can’t see any trace od a function with this name in piwik.js

I have just updated to 1.3.

does anybody know what’s possibly going wrong here ?

thanks,


(vipsoft) #2

These were added in 1.4. Try the release candidate.


#3

ok Anthon,

thank you very much for your answer. I’ll try 1.4 RC. Hope it’s stable.
Keep up the good work !