Returning visitors broken since update to 1.7

good news fellows, I spent some more time looking for things that might be causing this, tried around a little and it seems to be back working now.
Since I tried several things, I cannot really tell wich one was the significant aspect, but theres a few things I would recommend to you.

First and simplest, I disabled the “VisitFrequency”-PlugIn and (after changing some other stuff, see below) re-enabled it. Try that first and see if it helps.

Second thing to check:
I was using the so called “Image Tracker Code” because I couldnt get the JavaScript to run in my .php environment when I installed my first piwik and never went back to check.
If you should be using the image tracking code too, maybe theres the bugs cause - I did switch to JavaTracking now and it seems to work.
2.2 :
For some reason, the JavaTracker didnt work until I removed the first part where the https / http: checkup is happening (as far as I can interpret the script) -
I just let .php echo the part
"" instead of the first and it started working. I dont use any https so far, so this works for me for the moment.
This might not be related to the returning visitor bug - just sharing the whole story for those as clueless as me :slight_smile:

end of story: I see some returning vsitors, and my own visits are reliably recognized as returns. I’ll let you know if things get back to normal in a few days.

Hi MrSnuts

Thanks for your information. Tomorrow I am going to perform your steps…

Hello
Guys,

So far I have not found the solution to returning visitors. I have tried to Disable and Enable DNT plugin and others workarounds and I don´t have GEOP Plugin.

Any ideas?

Has anyone found a solution to this? I migrated piwik to a new server last Friday and upgraded to 1.8.2 from 1.6. Since the upgrade I have no data for returning visits. I’ve tried turning off DNT and disabling and re-enabling the VistitFrequency Plugin. Our archive script is run every hour and we use the image tracking code. We need to use this due to it being used on mobile devices that don’t support JS. Any suggestions or help would be a big help. I’d also love to know if I’ll be able to recover the data when it is fixed. Thanks!

Doug

Hello
Doug

So far I haven´t found the problem yet. I´ve tried anything to fix this problem but in vain.
Let´s wait a new release of Piwik.

ramilani12,
Did you try to use the java script verus the image tracker to confirm that didn’t work? I reviewed all of my configs and everything looks normal, and I also checked permissions to the tmp and tracker folders and they’re setup as expected, so I’m a little lost as to next steps to try and I didn’t see anything about this being part of the next release. Are you aware of work being done to resolve this?

Doug

Hello
Doug,

I haven´t tried to use only image tracker, now I´m using the both.
I´ll will try to do it.

Thanks

Hello
Doug,

I tried image tracker but in vain.
That is my code:


<!-- Piwik -->
<img src="http://server:8080/piwik/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik Tag -->
<!--ClickHeat-->
<script type="text/javascript" src="http://server:8080/piwik/plugins/ClickHeat/libs/js/clickheat.js"></script><noscript><p><a href="http://www.labsmedia.com/index.html">Open source marketing tools</a></p></noscript><script type="text/javascript"><!--
clickHeatSite = 1;clickHeatGroup = encodeURIComponent(window.location.pathname.split(/(index.htm)|(PGW_.)|(GVT_PC_\d*)$/)[0]);clickHeatQuota = 10;clickHeatServer = 'http://server:8080/piwik/plugins/ClickHeat/libs/click.php';initClickHeat(); //-->
</script>
<!--End ClickHeat-->


Did I do wrong?

I updated to Beta 5 and still no returning visitors with the image tracker. I’m running the archive.php script now with --force-all-websites --force-all-periods=157784630. Is there any other things I should be looking at to get the returning visitors back? I also noticed when I look at the visitor log that when it groups various vistors per a website it actually includes sites viewed by other visitors other than themselves. Is there potentially a caching issue with APC that I should be looking into?

To all users who have some issue regarding New VS returning visitors:

The Demo numbers look fine under Engagement, so it looks like it’s just our systems. I would assume it may be a setup issue, but I haven’t been able to hunt this down yet. My Piwik version and environment went from 1.5 on a hosting.com virtual linux machine to 1.8.2 in EC2. I’m also at PHP is version 5.3.14 (previous 5.2.10) and MySQL is at 5.5.24 . I’ve been using image tracking tags that look like this:

http://xxxx.com/piwik.php?&idsite=4174&rec=1&url=http://xxxxxx.com/example.aspx?cgID=29116&res=768x1024&h=8&m=26&s=23&cookie=1&urlref=&rand=1579177845&pdf=&qt=&realp=0&wma=0&dir=0&fla=0&java=1&gears=0&ag=0&action_name=title+-+PC+Home

I have a separate environment up that I’ve been testing in, so let me know if you have any suggested changes and I can try them out.

I ran some further tests by using the Javascript tracker and by disabling APC and still no dice. The screwy thing is that every new entry starts with a random hit from a website that’s in the DB, but does not have the tracking code for the server I’m testing from. The environment I’m testing from is a clone of our production environment with the exception of the domain and IP, which I switched to test. When looking at the PHP config settings, under apache, the HTTP_Cookie from 1.5 to 1.8.2 is very different. Is this something that should have changed? Or maybe that’s where my issue is. The new one starts with “piwik_auth=login%” and has what looks to be a bunch of encrypted code. The old one starts with “PIWIK_SESSID=”.

[quote=dougb]
The Demo numbers look fine under Engagement, so it looks like it’s just our systems. I would assume it may be a setup issue, but I haven’t been able to hunt this down yet. My Piwik version and environment went from 1.5 on a hosting.com virtual linux machine to 1.8.2 in EC2. I’m also at PHP is version 5.3.14 (previous 5.2.10) and MySQL is at 5.5.24 . I’ve been using image tracking tags that look like this:

http://xxxx.com/piwik.php?&idsite=4174&rec=1&url=http://xxxxxx.com/example.aspx?cgID=29116&res=768x1024&h=8&m=26&s=23&cookie=1&urlref=&rand=1579177845&pdf=&qt=&realp=0&wma=0&dir=0&fla=0&java=1&gears=0&ag=0&action_name=title+-+PC+Home

I have a separate environment up that I’ve been testing in, so let me know if you have any suggested changes and I can try them out.[/quote]

Note: the &url= should be URL encoded, this could cause problems.

Returning visitors are not tracked well with image tags, it’s expected, since returning visitor need cookies set by the piwik javascript code to be accurate. maybe it’s the problem? can you try using hte javascript code instead?

Matt, I tried the JS method and it seems to be working. We had previously used the image tracking method for 2 years though with no issues. Any chance it’s a bug with the image tracker? Either way, we’re going to work on migrating to the JS method.

I would just like to report that I still have strictly identical visits that are not tracked as a returning visitor. I’m using a vanilla 1.9.2 with just the GeoLite database file added. In both cases on the images attached, the browser’s plugin list is exactly the same for the initial visit and what should have been marked as a returning visitor.

Matt, can we have a pointer to which source file might be of interest is sorting this problem out?

The list of plugins is not the same… (:smiley:

Yes indeed. My bad. I should have paid more attention.

But in the second case (with visits yesterday and the day before), the list is the same. See the attachments.
So whether the plugin lists are identical or not, it happens that visits are not identified as returning visits.
The browser version however is the same in the attachments to this message. Could it be that plugin versions are used in determining whether a visit is a returning visit?

I have same issue in 1.10.1 Unique returning visitor not working… please help :frowning:

About this issue unfortunately I had to install last version of piwik a new installation and now my returning visitors is working properly.
I ´ve used piwik since version 1.1, aftter version 1.5 my returning visitors was not working properly.