Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piwik.js: allow customize Campaign tracking parameter names #2329

Closed
anonymous-matomo-user opened this issue Apr 18, 2011 · 5 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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
Copy link
Contributor

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

@anonymous-matomo-user
Copy link
Author

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
Copy link
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
Copy link
Member

mattab commented Apr 19, 2011

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

@robocoder
Copy link
Contributor

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

@anonymous-matomo-user anonymous-matomo-user added this to the 1.4 - Piwik 1.4 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants