We have an issue with cities not being tracked in our Piwik implementation on site: netstof.dk
I posted about this earlier:
We are experiencing an issue regarding missing city info in the location report, less than 1% of visitors on our websites “netstof.dk ” and “cfdp.dk ” show city info, with the remaining 99% showing “No data”.
We suspect this might be an issue with the IP database used for location info, we do not log visitors IP addresses, but our own IP is “80.160.65.58” and it also ends up under “No data” in the location report, after we visit the website.
Do you have any suggestions on how to solve this issue…
Got the following response from community
Hi! Seems like most of your visitors are anonymised and that’s why the information about city is not collected. This is probably happening because you haven’t integrated Cookiebot and Piwik PRO doesn’t register when the user consented and can be de-anonymised.
Here is a guide on how to do that: Cookiebot integration | Piwik PRO help center
But following the guide as recommended we ended up with tracking data in exactly one day. After that the curve flatlined.
Any ideas as to what might be wrong here?
Hi Jonas,
How exactly are you tracking data from Piwik PRO?
Try creating a session where you believe the city information should be available, and then checking in tracker debugger what’s shown.
Here’ for example I’ve started a session where there was single request sent and no city information is there
There’s no location information because the event that came is marked as not consenting/anonymous visitor, please check if that’s the case for the sessions you expect to see full data for (so the visitor consented) by first hovering over the event name and then clicking the icon that will appear next to that name:
it will show you the raw request data,
In it please check what’s the value for the uia parameter:
https://developers.piwik.pro/reference/get_ppms-php
Here’s what I see in the example from above:
Best,
Oliwer