@anonymous-piwik-user opened this Issue on April 18th 2011

The piwik.js uses Hardcoded variables for campaignNameParameters and campaignKeywordParameters. See js/piwik.js line 1340, 1341.

It must use the values from from the config file. Or is there any posibility to set these variables?

@robocoder commented on April 18th 2011 Contributor

(In [4504]) refs #1042, fixes #2329 - added setCampaignNameKey() and setCampaignKeywordKey() methods to tracking API; going to update the online docs now

@anonymous-piwik-user commented on April 19th 2011

Does this mean that the variables must be set twice in PHP and JS. This sounds not very convenient and could cause errors. I think there should be something that synchronizes both settings.

@robocoder commented on April 19th 2011 Contributor

There's no way to "sync" the config after the tracking code has been pasted to a web page / template.

But there are tickets for a tracking code wizard and campaign url builder. Those should take into account the server configuration, and present the appropriate output.

@mattab commented on April 19th 2011 Member

I think a simple FAQ would be enough to clarify this. But it's definitely not recommended to customize the parameter name.

@robocoder commented on April 29th 2011 Contributor

Matt: can you follow-up on this: http://forum.piwik.org/read.php?5,75698

This Issue was closed on April 29th 2011
Powered by GitHub Issue Mirror