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
Multiple visits with each pageview when "/?pk_campaign" is used #9299
Comments
FYI: There is a setting I'm not sure what the "www.prepelitu.ro" is? I had a look at the code and whenever one of the |
While debugging #9299 I noticed the check is a bit fragile. There is probably no actual issue but if one ever forgets to convert the `$information` to lowercase in referrer detection then Piwik creates many new visits.
*edited, dont want this details indexed by google |
Are there any different domains/subdomains involved during this process? Eg when navigating to another page? |
nope, no subdomains on my site...often the user simply refreshes the same landing page because they dont like the long url added by google with all those &clid and characters.. Inserting the setting you suggested in config.ini seems to have done the trick, at least from what i can tell in the past hours.. Although my problem is solved by that setting, the core issue remains: user arrives on site with /?pk_campaing in url and when they navigate to another page - on the same site but no longer having pk_campaing in url - piwik thinks it`s a new referrer.... It iss up to you if there are resources or if it is worth of investigating furthermore, or just close the ticket for now. Anyway, If I can help you anyhow, give you access to my installation/database, w/e, I would gladly do so. Thank you for the config.ini solution! |
Update: seems that although things are better after the config.ini setting, the bug is not completely gone. i can tell you what happened with this visitor:
Total of 3 visits. This is on |
I just had a look at the code and once Access to the Piwik instance would be helpful as well in case there is actually no config parameter missing on a server. Feel free to email to hello at piwik.org and leave a comment here afterwards in case it goes to spam folder |
Single server, but I had the setting under [General], did not know that is should have been [Tracker] :) |
Sorry, should have mentioned it in the first place :) I reckon we should still investigate the issue as disabling the setting is only a work around. I might try to reproduce it soon. |
I couldn't reproduce it so access to your installation might be helpful. That it creates the first visit and third visit is expected, not the second though. It creates the first visit because of a new campaign. It creates the third new visit because the last visit had no campaign set (was in first visit). The question is why does it create a new visit for the second pageview. If it didn't create a new visit for the second pageview, it would also not create the third new visit |
Wiped everything, installed fresh 2.15.0, sent email with details. |
Thx for that! Where does the referrer keyword get set? This is actually the problem. As soon as the campaign name or referrer keyword or the referrer type changes, Piwik creates a new visit which is on purpose. |
The referrer keyword on this campaign is set by google adwords, the search term on google. Sometimes it`s set, sometimes is not. |
I can finally reproduce it. It is related to the heartbeat timer. For some reason the heart beat timer didn't work in my regular browser window even though it was enabled. Now that I opened it incognito it somehow worked and now I am seeing this problem. |
So there are actually 2 bugs I reckon. Sometimes heartbeat is not sent even though it is enabled and when it is sent it creates many new visits if used in combination with campaigns |
Yayy, glad it`s a bug :D |
Even if it was not a bug it's still good to investigate such things so no waste anyway ;) Re the not working heart beat timer: It's basically impossible to debug this one remotely as heartbeat is based on
Update: I think it was actually just not sending ping requests as I had maybe the debugger open and the browser window was not considered "Active" by heartbeat. So only bug 2 remains that it creates new visits when campaign parameter is used |
Heartbeat is one of the best piwik feature, and from my point of view, end-user with no knowledge of "under the hood", is working like a charm.. as soon as my visitors are moving the mouse, the visit in live widget turns red (i have it customized, to have red-green color, red for active in last 15 sec, green for active in last 5 minutes)..i have never had problems with heartbeat |
Yeah it seems to actually works fine, was just me thinking it should still send tracking requests when being in the browser debugger but it's actually correct behaviour I guess :) |
@diosmosis can you maybe have a look at this? |
I have removed the heartbeat code from javascript and it made absolutely no difference.. so, if heartbeat it 's the culprit, then it doesn't even need to be fired-up in the end-user javascript. |
Is it maybe still cached for some people? It's possible that I was wrong and that it is not related to heartbeat. BTW: Which browser are you using when testing? In case you are using Chrome maybe have a look if there's an update as it could be related to this: #9246 (comment) |
I can confirm that this is not related to the heartbeat code being or not being in javascript code. Tested in clean edge/firefox/internet explorer with cleared cache/cookies, and also incognito chrome which is my main prowser. |
OK thx for that. Can you give us access to your Piwik again? Maybe also to your database and ideally webserver (if possible)? |
hello, replied to your e-mail with login credentials for piwik and also my webserver`s Control Panel which includes everything, database, file managers, etc. |
Is anyone using the login details i have e-mailed to look into this bug? I ' m not comfortable to stay for days/weeks with those temporary, unsafe and easy passwords for my site and webserver for nothing.. it`s my online store and i had suffered attacks from direct competition in the past. |
I'm having a look now |
Thank you a lot @Glisse1 this time we found the actual issue. I will let you know once there is a patch available. You can remove the access for us again. |
fyi: regressed in #8630 + tagged as |
Glad that I could help and you sorted this out |
FYI: I issued a fix for this here: https://github.com/piwik/piwik/pull/9363/files Are you familiar with applying diffs or patches? There would be a diff here: https://patch-diff.githubusercontent.com/raw/piwik/piwik/pull/9363.diff and a patch here: https://patch-diff.githubusercontent.com/raw/piwik/piwik/pull/9363.patch . It's quite a few changes so probably not easy to apply them manually If you are not familiar with it, I would recommend to wait for the next beta release after we merged this change. |
No rush man, I`ve been having this bug for more than a month, I can wait for the official 2.15.1 version. Thank you for working on it! |
@tsteur if someone has no possibility to upgrade to 2.16 (e.g. due to plugin incompatibility), is there possibility to workaround this bug? For instance will providing always campaign keyword (using pk_kwd or similar parameter) can solve the issue? |
I think always providing the keyword would result in many other problems. Only solution I could think of would be to add a random parameter to each referrer so far but it would likely not fix the issue alone as there's still a problem with the keyword. Actually, I think it's not really possible to workaround. Which Piwik version is currently in use? |
The version is 2.15. |
So far I cannot really think of any workaround apart from maybe setting config Re not possible to update. Did we break anything in 2.16.0 that makes the plugin incompatible? |
By 'no possibility to upgrade' I meant that it is not possible to upgrade to 2.16 as soon as possible, because all needed plugins had to be tested with 2.16 to ensure everything works. It requires significant amount of time. Since there is a need to fix this issue as soon as possible, I was searching for any workaroud/quick fix. Turns out the only solution is upgrading to 2.16, which will be carried out in few days. |
Sweet re upgrading. Sorry I wish there was something we could do but each workaround would likely make it worse. Only possibly thing would otherwise applying only the patch from #9363 but I presume this is not a solution |
Hello guys,
Somewhere after the upgrade to 2.15.0 I got a nasty bug which drove me crazy. When a user is reaching my site in any other way than adwords everything is perfect. But when the visitor comes from adwords (which has /?pk_campaign at the end of url) it tends to generate lots of visits, sometimes as many as pageviews.
The thing that got me going crazy is that i could not reproduce this bug on demo.piwik by directly entering the forum with /?pk_campaign in url. It seems to work fine there.
I have tried everything:
No effect. I have done all the above at least four times. I have concluded that there is something wrong with the way piwik sees a users reaching my site with ?pk_campaign (+1 visits) then going to another page normally (+1 visits) then for instance press back and once again is in the url with ?pk_campaign in it and hence (+1 visits). And so on. On the other hand, if you click the visitor profile you can see all these visit, piwik knows it`s the same visitor, but it just creates new visits for them one after another.
In the provided picture of a visitor reaching my site from google adwords you can see that some of the visits are non-clickable "adwbuc" other are clickable "adwbuc" (originating from my own site) with ?pk_campaign & long gclid when hover.
Having just plain text as the adwords campaign source also happened prior to 2.15 but rarely and also, never created the crazy visits rollercoaster.
Picture of 5 visits created for the same visitor in 7 minutes:
The text was updated successfully, but these errors were encountered: