Jump to content
Sign in to follow this  
rudolfl

[Contribution] Google Analytice Enchanced ECommerce

Recommended Posts

There is a small issue -- shopping cart events (products addition/deletion) do not work.

Code appears correct and right information is sent to Google.

I am currently engaged with Google tech support trying to sort out the issue.

Share this post


Link to post
Share on other sites

Current situation -- Google verified my code is correct and Google engineering team is looking into the issue.

So, I guess, contribution is good to go as is.

 

Rudolf

Share this post


Link to post
Share on other sites

Hi,

Sorry, did not try on 2.2.

You can try to use current instructions and adapt them to your site.

 

I would suggest upgrading from 2.2 anyway, as it is very outdated.

 

Rudolf

Share this post


Link to post
Share on other sites

Sorry, I neglected the thread for a while!

 

I did not do the Bootstrap versin of the site, but it should be easy to port. I am sure that most of the code changes in installation instructions will still be relevant.

 

Rudolf

Share this post


Link to post
Share on other sites

I just found an incompatibility. If you use "Purchase without Account" add-on, not all transactions will be passed to Google Analytics.

 

This is the problem with "Purchase without Account". It de-registers session at the start of "checkout_success" page, well before my code runs.

In order to fix it, edit checkout_success.php Close to the top, you will find code that deletes customer details and de-registers session variables. (part of "Purchase without Account" installation).  Cut all of that code and places it at the bottom of the file after inclusion of "template_bottom.php" and before inclusion of "application_bottom.php"

 

This will fix the issue.

 

Took me a while to figure out while some orders were not recorded in GA!

 

Rudolf

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  

×