How to setup Google Analytics for Easy Digital Downloads Enhanced eCommerce Tracking
This documentation is for the EDD Enhanced eCommerce Tracking plugin.
Before eCommerce data will be received in Google Analytics (GA), you need to set some things up in Google Analytics itself. You can follow the steps in this documentation to get your data tracking setup.
Configuring your site
Lets start by configuring the settings in your site. You first need the UA code that you can find in your Google Analytics dashboard. Copy that UA code to the settings field on the EDD settings page under the 'extensions' tab at the 'EDD Enhanced eCommerce Tracking' area.
Configuring EDD for Google Analytics Enhanced eCommerce
Google Analytics Enhanced eCommerce relies on Universal analytics, so the first requirement to setup Universal Analytics.
Creating a new view
No matter if you have an existing set of data in your GA or starting in a new account, it is wise to have a RAW view, and a view for the eCommerce data. You can create a new view by going to you GA dashboard -> 'admin' -> 'view' -> Click on the drop down and you can create a new view from there.
Enabling Enhanced eCommerce
Go to 'Ecommerce settings' in the view you've just created. Here you will first have to activate normal eCommerce tracing, and after that you will have the option for enabling 'Enhanced eCommerce tracking'.
After you've enabled both Ecommerce settings, you will have the opportunity to give labels tot he checkout steps. You don't have to set these labels, but it will help you in the eCommerce reports to identify the steps. I suggest giving the same labels as above.
Using a shopping cart
If you are using a cart on your website, you can add 'Cart' as your step 1. Also, if you are using a cart, you need to check the checkbox in the EDD Enhanced eCommerce Tracking settings area.
Viewing the first data in Google Analytics
You're likely very eager to get things started and viewing the data in Google Analytics. Unfortunately Google Analytics officially states it can take up to 48 hours to show the transactional data for the first time. In reality this is usually earlier, but can easily take 24 hours.
The best next steps to take it to at least do 1 test transaction per day, and check back in Google Analytics the next day to see if the data comes in. By default Google Analytics will only show data of the previous day(s) and not from the same day either way.
Feel free to reach out through the support channel if after 48 hours after the first test transaction still no data is visible in the reports.
Other Google Analytics tracking codes
EDD Enhanced eCommerce Tracking is added the tracking code automatically to the pages for you. Make sure to remove any other tracking codes you may have on the page to ensure the data isn't coming in double in your analytics.
Exception: We've ensured compatibility with the "Google Analytics for WordPress by MonsterInsights" plugin. If you have this plugin active we will use the tracking code from that plugin.