natiaz Posted March 29, 2016 Share Posted March 29, 2016 (edited) Hi, I've installed a Google Analytics module that asks for $content_only in order to insert the code or not. So {if $content_only == false} the module inserts the code. The problem is that the first time you enter the page, this code is not loaded, so I'm loosing all this information. I've tried to remove the if statement, but then I get an error in my analytics because the code is inserted twice, but in the HTML you only find it once (I think the second comes from an ajax call). What can I do to insert the code even when the user enters for the first time in my site? Thanks Edited March 30, 2016 by natiaz (see edit history) Link to comment Share on other sites More sharing options...
efrenzy Posted March 29, 2016 Share Posted March 29, 2016 The problem is that the first time you enter the page, this code is not loaded, Any page or only order page ? Did you modified GA module ? Link to comment Share on other sites More sharing options...
natiaz Posted March 30, 2016 Author Share Posted March 30, 2016 It seems that the cookie law module that I have installed was malfunctioning. Now that I updtaed it, it seems to work properly Link to comment Share on other sites More sharing options...
efrenzy Posted March 31, 2016 Share Posted March 31, 2016 Thanks for giving back your solution! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now