We'll be with you in a second ;)

С(onversion) and cost update API

Docly Child

WooCommerce and RedTrack

Estimated reading: 7 minutes

WooCommerce (WooCom) is a flexible, open-source commerce solution built on WordPress. The company started in 2008 as WooThemes and in 2017 decided to focus exclusively on eCommerce. Today WooCommerce empowers small and medium businesses to build exactly the store they want and sell online. Its legacy as an all-remote company endures, growing from three founders in Norway, the United Kingdom, and South Africa to more than 150 team members in 32 countries.

There are 2 categories of WooCom events which can be tracked with RedTrack:

→ 1st category includes standard events which will be tracked once these events are added to RT and the WooCom<->RT integration is done as per this guide. These events are:

  • ViewContent
  • AddToCart
  • InitiateCheckout
  • Purchase

→ 2nd category of events are custom ones. They are:

  • Subscription
  • Upsell
  • Downsell
  • OrderBump

In order to track the events of the 2nd category, in addition to the WooCom plugin you also need to get WordPress (WP) plugins aka funnel builders. These plugins/funnel builders are: One Click Upsell, WooFunnels and Upsell Order Bump.

Check out which events can be tracked with each additionally added plugin/funnel builder for WooCom:

WP type of the plugin/funnel builder for WooCom Once Click Upsell WooFunnels Upsell Order Bump YITH WooCommerce Subscription
Conversion events, that will be counted when using this plugin type ViewContent ViewContent Order Bump Subscription
AddToCart AddToCart
InitiateCheckout InitiateCheckout
Purchase Purchase
Upsell Upsell
Subscription Subscription
Downsell Downsell
OrderBump

Moreover, mind that:

  • Although such events as “Subscription” and “Upsell” are tracked 100 % with such additional plugins as “One click upsell”, “WooFunnels” or “YITH WooCommerce Subscription”, in theory they can also be tracked with any other plugins. That being said, the decision to test other plugins (except for “One click upsell”, “WooFunnels” or “YITH WooCommerce Subscription”) for tracking these events can be a bit risky due to this workflow not being entirely tested and verified.
  • For the “Purchase” event to be tracked in RedTrack, the order must have the status Completed / event marked payment_complete in WooCom.

To integrate WooCom with RedTrack act as follows:

Settings on the RedTrack side

⬇️ 1. Add custom tracking domain

 

Use this guide or this video tutorial to help you add a custom tracking domain.

⬇️ 2. Add custom conversion events

 

There are 2 categories of WooCom events which can be tracked with RedTrack:

→ 1st category includes standard events which will be tracked once these events are added to RT and the WooCom<->RT integration is done as per this guide. These events are:

  • ViewContent
  • AddToCart
  • InitiateCheckout
  • Purchase

→ 2nd category of events are custom ones. They are:

  • Subscription
  • Upsell
  • Downsell
  • OrderBump

In order to track the events of the 2nd category, in addition to the WooCom plugin you also need to get WordPress (WP) plugins aka funnel builders. These plugins/funnel builders are: One Click Upsell, WooFunnels and Upsell Order Bump.

Check out which events can be tracked with each additionally added plugin/funnel builder for WooCom:

WP type of the plugin/funnel builder for WooCom Once Click Upsell WooFunnels Upsell Order Bump YITH WooCommerce Subscription
Conversion events, that will be counted when using this plugin type ViewContent ViewContent Order Bump Subscription
AddToCart AddToCart
InitiateCheckout InitiateCheckout
Purchase Purchase
Upsell Upsell
Subscription Subscription
Downsell Downsell
OrderBump

Moreover, mind that:

  • Although such events as “Subscription” and “Upsell” are tracked 100 % with such additional plugins as “One click upsell”, “WooFunnels” or “YITH WooCommerce Subscription”, in theory they can also be tracked with any other plugins. That being said, the decision to test other plugins (except for “One click upsell”, “WooFunnels” or “YITH WooCommerce Subscription”) for tracking these events can be a bit risky due to this workflow not being entirely tested and verified.
  • For the “Purchase” event to be tracked in RedTrack, the order must have the status Completed / event marked payment_complete in WooCom.
  • There is a difference between Upsell and Downsell:

Upsells are products that you recommend instead of the currently viewed product.

Downsell offer is the one that you make to your customer after they’ve turned down your initial upsell offer. So if the customer didn’t accept your upsell offer, you can still increase their AOV by offering a downsell:

  • Purchase vs Subscription:

If a customer sells subscriptions, his purchases = subscriptions.

If the customer sells goods or services, his purchases = purchases.

To set up conversion types for WooCom Plugin, act as follows:

2.1 On the main menu navigate to the section Tools->Converion tracking->Conversion type-> set the events supported by WooCommerce-> if needed, add types in the event names (you can also apply different duplicate postback modes for each of them on the right)-> press Save:

2.2 Click here to learn more about conversion tracking in RT.

⬇️ 3. Create a custom Brand

3.1 Use this guide to help you add a custom Brand

3.2 Once created, pay attention to the following:

  • The specified title of the shop will correspond to the Brand name. The newly created Brand will serve as a placeholder for the tracking parameters.
  • If needed in the section Additional parameters you can add postback parameters by filling in the fields under the titles “Parameter“, “Macro / Token“, “Name / Description“. Remember to assign relevant roles to them in the fields under the title “Role“:

You are the one to choose the parameters you want to apply for tracking. Here is the full list of supported parameters:

  • eventid 
  • email 
  • phone 
  • lname 
  • fname 
  • zip
  • contentid 
  • contenttype 
  • content 
  • brand

⬇️ 4. Add your Website

4.1 Use this article to help you add your Website to RedTrack.

4.2 Once you’ve added your Website, you already have the universal tracking script generated for you automatically. To get it, in your Website form go to the tab Scripts-> scroll down and choose WooCommerce from the Conversion tracking drop-down-> copy the script:

Settings on the WordPress side

⬇️ 5. Add the RedTrack plugin for WooCommerce

Check out our video tutorial on how to add the RT plugin for WooCommerce and a universal tracking script to it or continue with the steps below.

5.1 Download the RedTrack.io plugin for WooCommerce to your computer:

5.2 Login into the WordPress admin panel and navigate to the Plugins-> Add New-> Upload Plugin:

5.3 Press Choose File:

5.4 Upload the downloaded RedTrack.io plugin for WooCommerce from your computer:

5.5 Press Install Now:

5.6 Once the installation is completed, click Activate Plugin:

5.7 Scroll down the page and find the plugin named RedTrack Plugin for Woocommerce, click Settings under it:

5.8 Copy the universal tracking script from the Website form (added within step 4):

5.9 Paste it to the Script field-> press Save changes:

Your universal scripts can also be found in Tools-> Scripts-> copy the needed script from the list of them:

Congratulations! The RedTrack WooCom plugin is now up and running.

  • If you are migrating from the GTM setup, remember to pause tracking tags and postbacks in your GTM.
  • RedTrack supports such Plugins for Subscription tracking as YITH WooCommerce Subscription and official WooCom subscriptions. As for the upsells, RedTrack supports WooFunnels Funnel Builder Pro. For more details on WooCom subscription info click here.

⬇️ 6. Create tracking Campaigns in RedTrack

Once you’ve added your Website within step 4, a default Campaign for the unattributed traffic was automatically created for you. Your next step is to consider the following tracking scenarios:

Scenario 1: If you only need unattributed (aka organic) traffic, then this Campaign is enough for you and you don’t have to create any more Campaigns manually.

Scenario 2: If in addition to the unattributed traffic you also use several paid Traffic channels (like Facebook or Google or something else) you’ll need to add these Traffic channels first and then create a Campaign for each added channel. Thus, you will have 1 Campaign for the unattributed traffic (created automatically within step 4) and another (or more in case of several Traffic channels) for the paid traffic.

Workflow for Scenario 2:

1. Add the needed Traffic channel.

2. Use this guide to help you launch your Campaign for the paid Traffic channel.

Tip: Your online shop will act as an Offer in most cases, so your Campaigns will have only this Offer in the Funnel.

7. (optional) For additional setup within the case where the landing page (aka website) domain and the WooCom shop domain are different domains, click here.