The new Google Analytics: Universal Analytics integration replaces several legacy DPD features:
1. Google Analytics eCommerce Integration
2. Using Google Analytics code in the Tracking HTML text field under Store Preferences.
3. Any Analytics tracking code you may have entered in the 3rd party conversion tracking integration.
You should disable your existing integration and remove any old Google Analytics code from the Tracking HTML field or 3rd party conversion tracking integrations before enabling the new Universal Analytics integration for accurate tracking results.
Note: The new Google Analytics: Universal Analytics integration uses the new Universal analytics.js tracking method provided by Google.
You must upgrade / replace your existing Classic tracking code on your own website if you have not already done so for this integration to work correctly. Failure to upgrade your own website to the new Universal tracking will cause inaccurate results.
The following 4 steps must be completed for accurate tracking:
Not performing any one of these steps will lead to inaccurate results.
1. Disable the legacy Google Analytics eCommerce integration on your store if it is enabled.
The old Google Analytics eCommerce integration did not correctly track referrers through cross site linking. This has been fixed in the new Universal Analytics integration. The new Universal integration also offers the same eCommerce conversion tracking found in the old integration.
2. Remove any Google Analytics code from the store Preferences > Tracking HTML box and save.
Leaving this code in place will cause DPD to display two sets of Google Analytics code, leading to inaccurate results and goal tracking.
3. Enable the new Google Analytics: Universal Analytics integration
To enable the new Universal Analytics integration, go to Integrations in the left menu and enable the integration. On the properties page you will see the following:
Account ID: Enter your Google Analytics UA-XXXXX-XX ID in this box. The account ID entered must be one configured for the new Universal Analytics and not the old Classic tracking.
Custom Code: FOR ADVANCED USERS ONLY. For the vast majority of users you do not need to put anything in this box. Optional parameters can be found on the Google Analytics Developer Website.
4. Replace the code on every page of your website with the pre-formatted code provided on the integration page.
The code provided at the bottom of the integration page contains required parameters for use with your DPD cart. Most users should be able to simply copy and paste this code to every page in their website, replacing any existing Google Analytics code, without editing it.
If you have a custom Google Analytics configuration on your website and want to manually merge our provided code with your own please be sure to include the ga() lines included in our supplied code in your custom configuration so that cross site linking and tracking of referrers will occur.
This completes setup of the new Google Analytics: Universal Analytics integration.
Please note: Google Analytics provides asynchronous tracking results. As a result, there may be a short delay (from 2 minutes to 24 hours depending on their processing load) from when a visitor purchases a product on your site and Google Analytics updates their results. This is not in DPD’s control.
Also note that the commerce features will only show once per sale on the delivery page. This is to avoid inaccurate results and duplicate sales. If you attempt to “view source” and see this code in action you will not see the eCommerce code because browsers pull a fresh copy of the page (reload) for view source calls.
Goal Tracking with the new Universal Analytics plugin:
You can accurately track your goal funnel through checkout using the following pages. All goal URLs should be of the type “begins with” as each sale attaches unique parameters to the ends of the URLs.
The flow through the DPD cart is as follows:
This screenshot shows a basic goal URL setup. In this example, / (home), category.html, and product.html are example pages on your website. The cart/add, view, and deliver URLs are shown configured after entry to your website: