Google Analytics Integration Guide

After you have created your wecantrack account, connected your affiliate networks and websites our system will be able to track your traffic data and attribute your conversion data to it. This enables us to push your conversion data to other tools such as Google Analytics.

We have integrations with both Google Analytics versions available. The GA4 integration feature is currently in beta.

Google Analytics 4 Integration Guide (BETA)

Requirements
Step by step guide
  • In GA4, go to Admin > Data Streams
  • Click on your available website property
  • You can find your Measurement ID on the top right
  • Place it in the GA 4 Measurement ID field within your website settings in the wecantrack interface (currently under ‘show more integrations’)
  • Within the same section, click on ‘Measurement Protocol API secrets’
  • Click on ‘Create’
  • Give the API connection a nickname, e.g. ‘wecantrack’
  • Click on ‘Create’
  • Copy the API secret
  • Place it in the GA 4 API Secret field within your website settings in the wecantrack interface (currently under ‘show more integrations’)
  • Click on ‘Save’ or ‘Save and Integrate’

In order to gain more precision in terms of sales attribution, you can increase the Google Analytics session timeout to 7 hours (which is the maximum).

  • Go to Data Streams > Configure tag settings > Show all > Adjust session timeout
  • Set it to 7 hours

By standard GA4 sets 2 months data retention, we recommend to increase that to 14 months in order to collect more data.

  • Go to Admin > Data Settings > Data Retention
  • Select 14 months
  • Within the wecantrack interface, go to Features
  • Activate the Google Analytics 4 Integration feature

That was it! From now on your affiliate conversions will be integrated in your Google Analytics 4 account.
Please note that only conversions coming from clicks that happened after the installation of wecantrack will be integrated in Google Analytics. This means it will take some time to have a full coverage because sales from older clicks will still be registered in the networks because of the cookie duration but cannot be imported to Google Analytics due to the missing SubIDs. Moreover, GA4 requires around 12 hours for data to get registered.

Custom Definitions (optional)

Through custom definitions (Configure > Custom Definitions) you can set up custom dimensions and metrics to gain additional information regarding clicks and conversions from the data we integrate in your GA4 accounts. Here we will list the custom dimensions and metrics you will be able to set up with our standard integration:

Custom Dimensions
Dimension Name (example)
User Property/Parameter
Description
Advertiser Name
parameter
wct_advertiser_name
description
advertiser names as a dimension for wct_conversion events
Affiliate Link
parameter
wct_affiliate_url
description
affiliate links as a dimension for wct_conversion and wct_click events​
Clickout URL
parameter
wct_clickout_url
description
clickout url as a dimension for wct_conversion and wct_click events​
Network ID
parameter
wct_network_id
description
network id as a dimension for wct_conversion and wct_click events​
WCT ID
parameter
wct_click_id
description
WCT ID as a dimension for wct_conversion and wct_click events​
Custom Metrics
Metric Name (example)
Parameter name
Unit of measurement
Description
Affiliate Clicks
parameter
wct_click_count
unit of measurement
Standard
description
number of clicks on affiliate URLs
WCT Conversion Value
parameter
wct_conversion
unit of measurement
Currency (revenue)
description
value of conversions in selected currency of GA account
WCT Conversions
parameter
wct_conversion_count
unit of measurement
Standard
description
number of affiliate conversions

Universal Analytics Integration Guide

Requirements
Step by step guide
  • Enable Ecommerce in Google Analytics Activating Ecommerce within Google Analytics is very simple but does require you to have admin rights of the account.
  • Go to Admin – Ecommerce Settings
  • Turn on “Enable Ecommerce”
    Please do not enable Enhanced Ecommerce
    If you want to make use of Enhanced Ecommerce, please send us an email.

In order to gain more precision in terms of sales attribution, you can increase the Google Analytics session duration to 4 hours (which is the maximum).

  • Go to Admin – Tracking Info – Session Settings
  • Set Session timeout to 4 hours and 0 minutes

Go to Features and click on the “Enable” button of the Google Analytics Integration feature.

That was it! From now on your affiliate sales will be integrated in your Google Analytics account.
Please note that only conversions coming from clicks that happened after the installation of wecantrack will be integrated in Google Analytics. This means it will take some time to have a full coverage because sales from older clicks will still be registered in the networks because of the cookie duration but cannot be imported to Google Analytics due to the missing SubIDs.

Please note that Universal Analytics will be sunset in summer 2023, so we recommend to also set up the GA4 integration feature.

Google Analytics (Universal Analytics) Integration Guide Video
Google Analytics Enhanced Ecommerce (Universal Analytics)

If you are using our Clickout API to pass click data to us we can also set up an Enhanced Ecommerce integration which could contain information regarding products, brands, categories, lists, affiliate networks, SKUs and transaction IDs. You will need to provide us the information you want integrated via our metadata parameter within the Clickout API. Please contact us if you are interested in this functionality and we will give you additional information.

Affiliate Link Click Goal in Google Analytics (Universal Analytics)

Once you have fully connect your networks, websites and analytics integration, the clicks on your affiliate links will be tracked in Google Analytics under events. Due to that you can also set up a Click goal next to the Ecommerce goal. This will help you analise click through rates for your website content.

  • To set up the click goal, go to Admin > Goals
  • Click on “+ New Goal”
  • As goal setup select “Custom” and click on “Continue”
  • As goal setup select “Custom” and click on “Continue”
  • Give your goal a name (e.g. “Click”, “Click Through” or “Click-out”)
  • As type select “Event” and click on “Continue”
  • Please set “Category Equals to WCT” “Action Equals to Click”
  • Leave the other fields empty and click on “Save”

You’re all set. Now you can go and select the Click goal within your Acquisition section in Google Analytics.