Michel Poulain Posted July 7, 2010 Share Posted July 7, 2010 Prestashop uses obsolete Google Analytics code. Here is a patch that works with my production site.1. _gat._getTracker is deprecated as mentionned here : http://code.google.com/intl/fr-FR/apis/analytics/docs/gaJS/gaJSApi.html 2. _trackTrans() has to be inserted AFTER _trackPageview() not before.http://code.google.com/intl/fr-FR/apis/analytics/docs/gaJS/gaJSApiEcommerce.html#_gat.GA_Tracker_._trackTrans3. hookFooter() send 2 instances of _trackPageview() during orders (ganalytics.php line 137).This is a duplicate of my bug tracker submission http://www.prestashop.com/bug_tracker/view/4872/ as the Bug Tracker interface doesn't display my patch and breaks code.Here are the patch and the final module patched. ganalytics.txt ganalytics.php Link to comment Share on other sites More sharing options...
Charles T. Posted August 1, 2010 Share Posted August 1, 2010 In fact this module uses the traditional snippet wich is deprecated.I made a module that uses the new (well... not so new now) asynchronous tag you can find it here :http://www.prestashop.com/forums/viewthread/63094/modules_tiers/google_analytics__module_avec_tracking_asynchroneany feedback appreciated Link to comment Share on other sites More sharing options...
humanfly Posted January 6, 2011 Share Posted January 6, 2011 Great stuff! Cheers for the new module 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