Jump to content

Google Analytics Tracking Code


Recommended Posts

  • 2 weeks later...

Hello,

I have a related concern... I updated from Prestashop 1.3.1.1 to 1.3.6.0 and in the meantime managed to switch to simplified URLs by properly configuring my .htaccess . Now, when I go to my main page www.ganda.fr and check source code I do not find the section for Google Analytics even if the native "Google Analytics" module is properly configured. I checked on other Prestashop powered websites and they have this section in their code (I am pretty convinced I had it in the past too). Now, the weirdest thing is that Google Analytics is still working except for the "In-page analytics" but it is probably due to the fact I switched to simplified URL.

Here is a simple question:
Should I expect the Google Analytics section to appear in my source once I activate the associate module?

Regards

Link to comment
Share on other sites

Thanks for your quick answer! I am still trying to figure what is going on here. ;)

I have my own template but footer.tpl is the original one. I even updated with the latest one from 1.3.6.0 (weirdly enough there is an extra that I cannot explain) but it does not change the conclusion: No special Google Analytics code in my page but the service still works. This is a mystery for me.

For info, my footer.tpl:

================================

{if !$content_only}


<!-- Right -->


{$HOOK_RIGHT_COLUMN}



<!-- Footer -->
{$HOOK_FOOTER}


{/if}
</body>
</html>

================================

Regards
Link to comment
Share on other sites

Hmmm... I am trying to debug this but with Windows 7 very weak "search in file contents" feature, I am almost working blindfolded (damn I miss Unix, I need to find a decent search tool for Windows 7). I do not know if you feel like putting me on track on this one...
In the Google Analytics module, there is a file called ganalyics.php declaring a function called "hookFooter". What is supposed to actually call this routine? (Now, you understand why I am trying to seach in file contents... ;)

Link to comment
Share on other sites

In 1.3.6.0 was included our patch for GA module and GA code is no longer displayed to users with "Maintenance IP address" which can be set in Back Office. It allows to get much more precision GA data, because it no longer count your own access.


Hehe! That's what I figured out when looking at the code. I saw the following line and it rang a bell:

================================

if(Tools::getRemoteAddr() == Configuration::get('PS_MAINTENANCE_IP')) return '';

================================

Now I verified that if I remove my maintenance IP then the Google Analytics script shows!!! NICE!!!

Thanks guys, this was really confusing since I could not see what Google sees!!!

NOW, this leads to several questions:

- Why isn't this new feature documented in the Backoffice?

- Why isn't this new feature documented in the CHANGELOG?

- Even worse, why is the module version still 1.2 if there is an update?!?

Really confusing indeed...

Thanks again for your help.

PS: I guess the fact that the "in-page analytics" do not work is due to the simplified URLs. I guess I just have to wait for Google engines to figure out what happened on my site.
Link to comment
Share on other sites

When we posted this patch to Bugtracker we put a note that users may be confused by this Feature.

The way how it was implemented is only up to PS devs so ask them (http://www.prestashop.com/bug_tracker/view/6797/), but I think they assign most of resources to 1.4 development so they do not want to spend too much time with old branch what is logical.

Link to comment
Share on other sites

Yes, you forecasted 23 days ago that I would waste 2 hours figuring out what was going on! ;)
I would like to go forward and ask the PS devs as you suggested to understand how the community works.
Should I post a comment in the bugtracker entry or ... ?
If I want to do this is because I will probably contribute to the solution once I have understood it better.
Thanks again and great improvement anyway!

Link to comment
Share on other sites

  • 10 months later...

Hi,

 

Can anyone know how to get information about checkout? Like from which step buyer stopped buying product. So that we will do needful changes in site.

 

Thanks

Vilas

I'm not sure if this is possible with the present "Google Analytics" integration, but a module can be developed that will tell you the last step of every abandoned cart, if that's what you're interested in.

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...