Hi,
I’m just doing a bit of investigating of our stats. I was off on Shared-parental leave for 6months and whilst i was off someone else rebuilt our website. Our stats package was changed and now seem a lot different to before so i just want to be 100% sure they are recording correctly.
they installed Piwik on the server which requires a piece of JS and they have also put on this line
Looking at a subsite https://www.mcsuk.org/beachwatch/ (which is within our normal site) whilst it has the tracking code in a different position i had a look with the inspector and can see 2 instances. I am wondering if the piwik.js is the normal tracking script and the piwik.php (which outputs as a gif) is the version. does this seem likely? is there a way to check this?
Without looking at the PHP code and only giving the unminified JavaScript file a quick scan, this is more a guess. But I think the js sends the GET to the php and the php does logging etc.
In any case, that markup in the <head> looks to be a result of the not so rare confusion about the differences between head, header and heading.
ah yes i think you are correct. I’ve been reading everything i can find and i think that is the case. Although i did stumble across https://github.com/angulartics/angulartics/issues/435 which has a bit at the bottom where it is logging twice but that seems to be by enabling trackPageView method in the code, which i see is in our code. I wonder if that is the case.
How can i test this? Will our server log show calls to piwik.php that i can look at?