Open anonymous-matomo-user opened 12 years ago
You can do a similar thing with:
tracker.setCustomUrl( document.URL + "?&_rcn=TestName&_rck=TestKeyword" );
Yes, I know, thanks. In fact it's what I'm doing (as I said in the forum thread), but it would be cleaner not to alter the original url (my humble opinion).
Related forum thread: http://forum.piwik.org/read.php?3,93280
Plase, it would be very useful if campaign name and campaign keywords could be set using Javascript API functions. Maybe two new functions could be created, named setCampaignName and setCampaignKeyword which internally would add _rcn and _rck parameters to the call to piwik.php.
Thanks Keywords: campaign