Jump to content

[Solved]Analytics module and $content_only


natiaz

Recommended Posts

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 by natiaz (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...