Support

Home Forums Event Espresso Premium Implementing Ecommerce Tracking – Web Tracking (ga.js) on Event Espresso

Implementing Ecommerce Tracking – Web Tracking (ga.js) on Event Espresso

Posted: April 3, 2014 at 7:46 pm


Rosemarie Withee

April 3, 2014 at 7:46 pm

Hi,

Our team would like to get more data from Google Analytics especially on the ecommerce side. I’ve read about this: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingEcommerce but how do i implement this on Event Espresso? Any suggestions on how to maximize Google Analytics on Event Espresso? We’re hoping to get more data than just knowing the number of visitors. thanks!


Josh

  • Support Staff

April 4, 2014 at 9:57 am

Hi Rosemarie,

It will depend on what information you want to track, and also which version of Event Espresso (3 or 4) that you’re running.

For example if you are using Event Espresso 3, your developers could add the tracking code to the end of the payment_overview.php template. To track instances of completed payments only, the tracking code code by added like so:

<?php
switch ( $payment_status ) {
  case 'Completed':
    // tracking code goes here
  break;
		
  default:
  echo "<!-- not complete -->";
  break;
}

The support post ‘Implementing Ecommerce Tracking – Web Tracking (ga.js) on Event Espresso’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso