Jump to content

SOLVED Google analytics problem with the option "Move JavaScript to the end"


Recommended Posts

I have a problem with the Google Analytics module and the performance option "Move JavaScript to the end."

 

My account analytics can not bind properly because the code needs to be located in the header, and the option to "Move JavaScript to end" leads me analytics code outside the header, so it fails.

If I turn off the option "Move JavaScript to the end" many functions do not load on my site ... that is, the website does not work correctly. For this reason, I must leave the option enabled.

 

How I can fix this? There is another way to configure analytics modules or add analytics code in the header without me take the script at the end and error?

Edited by CriterioNet (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...

Have you found a solution to this problem yet? It's extremely odd that it doesn't work, and incredibly frustrating!!

It really is very frustrating! I do not understand why not other people have this problem if two functions are almost essential.
I have not yet found a solution. I just went back to the two modules installed and configured GA Analytics to see the results, but I could not use panels in the back office analytics and configure it properly
Link to comment
Share on other sites

  • 3 weeks later...

I managed to find a work around for it here

 

https://gist.github.com/hereswhatidid/8c8edef106ee95138b03

 

It's a little confusing to start with but it does seem to work!

 

I found a solution thanks to Presta-Lab, if you're interested! https://www.prestashop.com/forums/topic/455708-solucionado-problema-con-el-m%C3%B3dulo-de-analytics-y-la-opci%C3%B3n-mover-javascript-al-final/page-2

 

Regards.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...