Jump to content
Sign in to follow this  
lastcowboy

google analytics for prestashop 1.1 no stats recorded.

Recommended Posts

Hi I am using prestashop 1.1

I did not change any code except to allow facebook login.

I have installed and configured the analytics module as required but i am receiving no stats from it.

Please advise.

My previous request for help was ignored and i am desperate for help.

I am willing to pay to have people sort this thing out for me.

Please help me.

Thank you.

Share this post


Link to post
Share on other sites

Do you see the analytics code if you do "View source" on your site from a browser?

Share this post


Link to post
Share on other sites

if you mean the urchin tracker, no i do not see it.

I had to manually put it in the footer.tpl.

That is not how it is supposed to work yes?

Share this post


Link to post
Share on other sites

I don't know what is an Urchin tracker.

If you enable the google analytics module, and enter your Tracking Id in the module configuration, you should see the following code at the bottom of your files (when you do "view source")

       [removed]
           var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
           [removed](unescape("[removed][removed]"));
       [removed]
       [removed]
           var pageTracker = _gat._getTracker("UA-1234567-1");
           pageTracker._trackPageview();

       [removed]

Share this post


Link to post
Share on other sites

i saw something like that only in a function called HookFooter inside the file ganalytics.php

but i do not see it in the view source of the webpage itself.

Share this post


Link to post
Share on other sites

Oh thank you.

You helped me to figure it out.

Apparently there is a $HOOK_FOOTER which was commented out by mistake in the footer.tpl inside the new theme.

Thank you for your help. You were great. It took me over a month to figure it out.

Share this post


Link to post
Share on other sites

Hi

after i revealed the $HOOK_FOOTER,

and reverted back to the use of prestashop own internal analytics module,

the stats are not being kept by analytics.

Please help me to figure this out.

Share this post


Link to post
Share on other sites

Do you see the Analytics code in your site (when you do view source)?
If you do, then it's working (google takes some time to update the stats), if not, than you may need to look again and see if you made any other changes that are messing up with the code.

Share this post


Link to post
Share on other sites

I have read abit of the google analytics documentation.

Apparently, the analytics code needs to be IMMEDIATELY BEFORE the </body> tag.

So i have moved the {$HOOK_FOOTER} to just before the ending </body> tag in the footer.tpl.

Fingers crossed that it will work, when i checked my stats tomorrow.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More