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

Campaign parameter ignored when not as first parameter #697

Closed
anonymous-matomo-user opened this issue May 8, 2009 · 8 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

When I'm passing the campaign parameter as second parameter, it is not correctly detected.
Thus, after setting

campaign_var_name = "cm"

in config.ini.php, the following doesn't generate a campaign record:

!http://my.test.domain/?x=0&cm=test&b=1

while this one works:

!http://my.test.domain/?cm=test&b=1

Keywords: campaign

@mattab
Copy link
Member

mattab commented May 18, 2009

please read: Visits from search engines or campaigns are not recorded, Piwik shows "No data available".

especially the part where it explains that only the first keyword/campaign will be recorded as referer; can you please double check that you were not testing this way?

@anonymous-matomo-user
Copy link
Author

Hi, there. I checked again. The visitors are all coming with URLs of the type http://my.test.domain/page?q=keyword&cm=campaignname and the visits and urls are correctly recorded (they appear in the "page" reports, including the "q" and "cm" parameters), but the campaign names are never recorded.

When I visit the URL http://my.test.domain/page?cm=testcampaign instead, the campaign is recorded and appears in the administration interface.

I still think the different behaviour depends on the campaign parameter appearing as the first one or not. Could anyone check whether this is the case?

@mattab
Copy link
Member

mattab commented May 30, 2009

did you check with at least 30 minutes between each test? if yes we shall reopen and fix this issue

@anonymous-matomo-user
Copy link
Author

Hi. We did some extensive testing and we are using piwik on a production website receiving lots of daily visits of the form !http://my.test.domain/page?q=keyword&cm=campaignname

Test visits where we use cm as first parameter are recorded, the ones with cm as second parameter are not. We installed the latest version yesterday and the issue seems to be still there.

Thanks

@robocoder
Copy link
Contributor

re-opening for investigation

@robocoder
Copy link
Contributor

By visual inspection of the code: piwik.js already escapes the url=XXX; in Tracker/Visit.php, getReferrerInformation() calls getRequestVar('url') which results in the value being sanitized. The result is confusing parse_url().

@robocoder
Copy link
Contributor

(In [1234]) fix #697 - some campaigns not being tracked

@mattab
Copy link
Member

mattab commented Apr 27, 2011

see also

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. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

3 participants