Enabling Renewal Order Tracking in ExactMetrics’s eCommerce Addon

Our ExactMetrics eCommerce addon no longer tracks automatic subscription renewals inside Google Analytics for better accuracy of monitoring your online store’s performance.

We do not recommend it, but if need be, you can re-enable the tracking of renewal orders and refunds using a filter.

Why was this change made?

Renewals occur without any action by a user. This kind of data does not truly belong in Google Analytics since it’s meant to track behavior and action-based metrics.

There’s no easy way to separate renewal revenue and new revenue in Google Analytics. Additionally, combining renewal data with your overall eCommerce revenue can skew your average order value, eCommerce conversion rate, and other important metrics.

If users aren’t careful, skewed data can lead to false assumptions about an ad campaign’s performance, or if the adjustments you’ve been making are truly boosting your overall store revenue.

How to Enable Renewal Order Tracking in Google Analytics

You can adjust ExactMetrics’ eCommerce addon to track renewal orders and refunds by using a code snippet.

This is not an option readily available in ExactMetrics since we strongly recommend against enabling renewal order tracking.

The code you will be adding is the following:

add_filter( 'exactmetrics_ecommerce_skip_renewals', '__return_false' );

Option 1: Using a plugin such as Code Snippets.

Step 1: While logged into your WordPress, go to Plugins » Add New and install the Code Snippets plugin. You can follow a step-by-step guide if needed: How to Install a Plugin.

Step 2: Once the plugin is installed and activated, click on Snippets » Add New.

 

Step 3: Name your new snippet:

 

Step 4: Copy and paste the ExactMetrics filter code snippet:

Toggle the option Only run on site front-end.

 

Step 6: Then click Save Changes and Activate to finish.

Option 2: add the code to your theme’s functions.php file

Step 1: While in your WordPress admin, go to the Appearance » Theme Editor page.

Step 2: Edit your functions.php file.

 

Step 3: Insert the code snippet at the bottom and click Update File.