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
create_new_visit_when_campaign_changes = 1 not working #12218
Comments
Do you have the Marketing Campaigns Reporting plugin installed? |
Hi, @sgiehl. No, I don't have the Marketing Campaigns Reporting plugin installed. |
This cookie _pk_ref.xxxxx contains information about the campaign and keyword; if I delete it, everything behaves the way it should (creating a new visit for every new campaign, no matter if one is inside the same session). Is this cookie really necessary? |
For now, we have chosen not to set this cookie (_pk_ref.xxxxx), this way everything behaves as we want to. The problem is when this cookie is set, and this happens when the first visit to the site (I mean, without an active session) ocurres with a campaign (URL?pk_campaign=c1, for example); after this, no matter what you do, all new visits (with or without campaigns) are going to be associated with the campaign set in the previous example. All of this happens because of _pk_ref.xxxxx cookie. |
Came here because of the forum issue https://forum.matomo.org/t/campaign-is-there-a-tracking-timeout-after-user-clicks-one-link/28690/7 - this is reproducible in my instance as well. Line 4267 in c0d6e95
|
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/issues-with-campaign-handling/48989/1 |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/issues-with-campaign-handling/48989/2 |
@heurteph-ei Actually not sure about that. Will keep this issue open, so we maybe have another detailed look when working on #19657 |
Hi! In the documentation I can read the following:
"By default Piwik will create a new visit whenever a visitor views your website using a different campaign information from the visitor’s ongoing visit. You can disable this behavior by setting create_new_visit_when_campaign_changes=0 under [Tracker] section in your config/config.ini.php file."
But it is not working for me. When I visit my website using different campaigns, Piwik registers always the same campaign established in the cookie a long time ago. It only changes when the session ends and I visit the website using a different campaign (but it has to be the first visit after the session ends, because if not, the old campaign is set again for the new visit).
Btw, is it the intented behavior to keep the same campaign even when the session ends and after that the user visits the site without any campaign specified in the url?
Thank you very much in advanced.
The text was updated successfully, but these errors were encountered: