Ad Campaigns - How are those sent to the server?


(David Lewis) #1

Hey there!

I’m the piwik.js library on my site and I’m trying to call setCampaignNameKey("myCampaign") on my tracker object. How is that campaign supposed to sent back to the server, because when I call trackEvent(...) on the tracker object, I don’t see that campaign name key being sent back in the params of that request.

I must be doing something wrong, but I’m not sure what. Any help understanding this would be very helpful.

Thank you


(Lukas Winkler) #2

Hi,

As far as I know (I have never used this feature) you can rename the pk_campaign parameter, but you still have to add it to the URL as explained in the Campaign tracking:

https://matomo.org/docs/tracking-campaigns/

https://example.org/landing.html?pk_campaign=Email-Nov2018


(David Lewis) #3

Okay cool, I appreciate the help.