Forum Replies Created
-
AuthorPosts
-
SALOUParticipant
I found this topic on stackoverflow, maybe we have to add a little bit of code directly into Grand Media Plugin
http://stackoverflow.com/questions/12538115/google-analytics-and-hash-anchor-doesnt-work?rq=1“you need to execute this after the hash has changed. I think you are executing this when the page loads. When the hash changes the page doesn’t reload so you need to run this function call explicitly again.”
SALOUParticipantThank for your help.
It seem that the problem is not solve. GA doesn’t count the hash url change as a page view without reloading the page…SALOUParticipantI don’t know how to add that to my GA code.
I try like this, is it good ?<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXX-XX', 'auto'); window.onhashchange = function() { ga('send', 'pageview', {'page': location.pathname+location.search+location.hash}); }; </script>
SALOUParticipantHello,
i come back to you. I’m always in trouble with this hash thing and Google Analytics.
I manage to configure Google Tag Manager like on your first link you gave to me. This work but only if the page is refresh.
Have you an idea how to count every hash like #photobox124, #photobox125 etc… when the user watch a gallery ?Thank you,
SALOUParticipantThank you,
i try to search en Google, but i think i didn’t have the good keyword.
Have a good day.
-
AuthorPosts