- Priority: 0
- Status: Closed
- Theme: Venedor
-
Assigned To:
Alex
- Private: No
- Open Date: 09.09.15, 17:52
- Opened by: Soporte Criterio
- Closed by: Alex
- Closed on: 31.10.15, 10:03
- Reason: No answer from a customer
- Comment: Glad to help!
Ticket #8405 - Errors when I turn off the "Move javascript to end" option
Good afternoon! Please we need to know why it does our website not work normally when I disable “Move javascript to end” option (enclosed capture how the site looks like when this option is disabled)
We need to turn this option off, as we believe that it is creating conflicts with Google Analytics module. The latter precisely placed in the <head>, and the “Move javascript to end,” takes you to the last code option.
Comments
Hi. For normal theme work this feature should be always enabled. We have a lot of customers and they don’t have problems with the Google Analytics.
Hi, thanks for your answer.
When we deactivate this option, Analytics not working properly… You can help to know how to place fixed analytics script in the <head>? For this option does not lead to the end of the code and give an error.
How do you use GoogleAnalytics? Default ps module?
Where do you see GA error?
I used the Google Analytics module, but now put the code directly in the <header> in the file header.tpl
In both cases (using the module and by direct code) google analytics error alerts me that the code is outside the head. Therefore it consulted on the “Move javascript to end” option because that’s what it takes to last the script code.
This is the code entered in <head> of header.tpl file:
How you could set this script to not drag the end of the code and is respected and maintained within the <head> ??
As I see it’s a common issue https://www.prestashop.com/forums/topic/390423-google-analytics-module-not-tracking-ecommerce-data-on-prestashop-169/page-4
Here is the post of your issue https://www.prestashop.com/forums/topic/439332-google-analytics-vs-prestashop-move-javascript-to-the-end/ I hope here PS developers will write the solution.
By the way try this solution http://stackoverflow.com/a/19505055