API Integrations

WooCommerce Plugin Setup

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.

This article will show you how to integrate your WooCom store with the RedTrack account easily. To do that, follow the steps below:

1. Add your shop to RedTrack.io

1.1. Create a custom Offer Source. To do that, act as follows:

a. press “Offer Sources“-> “New“:

b. choose the option “Create custom“:

c. specify the name of your shop in the “Title” field:

Specified title of the shop will correspond to the Offer Source name. The newly created Offer Source will serve as a placeholder for the tracking parameters.

1.2. Go to the “Additional parameters” section. Add postback parameters by filling in the fields under 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 = {replace} – add, assign role
  • email = {replace} – add, assign role
  • phone = {replace} – add, assign role
  • lname = {replace} – add, assign role
  • fname = {replace} – add, assign role
  • zip = {replace} – add, assign role
  • сontentid = {replace} – add, assign role
  • contenttype = {replace} – add, assign role
  • сontent = {replace} – add, assign role
  • brand={replace} – add

1.3. Add Offer. To do that, act as follows:

a. press “Offers“-> “New“:

b. in the main window, specify the Offer’s name in the “Offer name” field, Offer’s source in the “Offer source” field (which you will have to choose from the dropdown menu), and the URL of the Offer in the field “URL“:

You can just enter shop URL and Offer URL, but in this case you will have to ignore the popping up warning:

2. Create custom conversion events

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

a. press “Tools“-> “Conversion tracking“:

b. click on the “Conversion type” tab, type in the appropriate e-com focused conversions types, and press “Save“:

The list of Conversion types used with WooCom Plugin includes:

  • ViewContent
  • AddToCart
  • InitiateCheckout
  • Purchase
  • Upsell
  • Subscription

3.  Create tracking campaigns in RedTrack

You might have several paid Traffic sources (like Facebook or Google) or have only organic traffic.

You have to create a Traffic source and a Campaign for each source. This will help you to have all the important data in place and grouped correctly.

3.1 Find more on Facebook and Google integration if you use any of them. If you work with some other paid Traffic source, you can search for the integration guide here.

3.2 Add the Traffic source for organic traffic. To do that, act as follows:

a. click on “Traffic sources“-> “New“:

b. press “Add“:

c. in the “Source name” field type in “Organic” or anything else that will help you identify your custom source:

Leave the parameters and a postback field empty and press “Save.”

3.3 Create Campaigns with each of your sources or traffic. For example, if you have Facebook and Organic, you should create 2 Campaigns.

More info on creating a Campaign can be found in the article “Creating a campaign.” Your online shop will act as an Offer in most cases, so your Campaigns will have only this Offer in the Funnel.

4. Add a custom tracking domain

Add a domain and an SSL certificate.

If you don’t have a certificate, obtain one by following the steps described in the “Purchasing an SSL certificate with gogetssl.com.”

5. Generate a Universal Tracking Script

To generate the script, act as follows:

a. press “Tools“-> “Scripts“-> “New“:

b. fill in the fields in the “New Script” form accordingly and press “Save“:

The fields correspond to the following data:

Script type – select one of the 3 types.

  • default – choose this one if you plan to work with your own website (e.g. e-com store) where a visitor can click on any link or visit any tab while the target action is tracked always on some other page no matter what the visitor path was before.
  • /click support – use it when you lead the visitor from your landing page to a 3rd party offer and use domain.com/click CTA link format
  • /preclick support – same as /click support but for a prelanding page with domain.com/preclick CTA link

Title – give your script a name

Domain – choose a custom tracking domain that will be used in that script

Default campaign – organic traffic campaign created within step 1

Attribution – set the attribution model you want to use

  • First click – first recorded inbound click
  • Last click  – last recorded inbound click
  • Last paid click – last recorded inbound click with tracking parameters
    We recommend last paid click attribution for the majority of cases.

Attribution window – set the attribution window, the period for the first click, and last paid click models

Cookie domain – the 1party domain to place a cookie. This is your website domain, the one where you place the script.

Generated script – once you save the changes, the ready-to-use script will be generated.

Tip: with WooCom, the best option is to use a default script type since you will run your traffic directly to the shop.

6. Login into the WordPress admin panel

6.1. Click on the “Plugins” option in the menu to your left:

6.2. pressAdd New”:

6.3. choose the option “Upload Plugin”:

6.4. upload .zip file by pressing the “Choose file” option in the pop-up window:

6.5. once the file is downloaded, press “Install Now”:

6.6. once the installation is completed, click on the option “Activate Plugin”:

6.7. scroll down the page and find the plugin named “Redtrack Plugin for Woocommerce,” click “Settings”:

6.8. Insert Universal tracking script (the one you generated in point 5 of this guide) in the field “Script” and press “Save Changes” to finish:

Congratulations! RedTrack WooCom plugin is now up and running.

Mind 2 important details in terms of RedTrack WooCom plugin integration:

  • 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.
Related Articles