Title: Affiliate Sales in Google Analytics and other tools
Author: wecantrack
Published: <strong>28. Abrëll 2020</strong>
Last modified: 1. Juli 2026

---

Search plugins

![](https://ps.w.org/wecantrack/assets/banner-772x250.jpg?rev=3007322)

![](https://ps.w.org/wecantrack/assets/icon-256x256.gif?rev=3007598)

# Affiliate Sales in Google Analytics and other tools

 By [wecantrack](https://profiles.wordpress.org/wecantrack/)

[Download](https://downloads.wordpress.org/plugin/wecantrack.5.1.1.zip)

 * [Details](https://ltz.wordpress.org/plugins/wecantrack/#description)
 * [Reviews](https://ltz.wordpress.org/plugins/wecantrack/#reviews)
 *  [Installation](https://ltz.wordpress.org/plugins/wecantrack/#installation)
 * [Development](https://ltz.wordpress.org/plugins/wecantrack/#developers)

 [Support](https://wordpress.org/support/plugin/wecantrack/)

## Description

**The affiliate conversion tracking plugin for WordPress.** wecantrack connects 
you to [450+ affiliate networks](https://wecantrack.com/affiliate-networks/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
attributes every sale back to the page, click and traffic source that earned it,
then sends that revenue data into the tools you already use: [Google Analytics 4](https://wecantrack.com/affiliate-sales-in-google-analytics/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
[Google Ads](https://wecantrack.com/affiliate-sales-in-google-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
[Meta](https://wecantrack.com/affiliate-conversion-tracking-in-facebook/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
[TikTok](https://wecantrack.com/affiliate-conversion-tracking-tiktok-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
[Microsoft Ads](https://wecantrack.com/microsoft-ads-affiliate-conversion-tracking/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description)
and more.

Most affiliate plugins count clicks. wecantrack tracks what those clicks actually
earned.

wecantrack was built by affiliate publishers in 2019 and is backed by a strategic
investment from Awin, one of the world’s largest affiliate networks.

**The problem with affiliate data**

If you publish affiliate content, your sales data is scattered. Every network has
its own dashboard, so you log into five or more of them just to see what you made.
You cannot tell which article drove a sale, which traffic source converts, or whether
your paid campaigns are profitable, because the conversion never makes it back to
the page or the ad that caused it. So you guess.

wecantrack closes that gap. The plugin adds a unique click ID to your affiliate 
links, tracks the session and click behind each one, and matches it to the conversion
data we pull from your networks. The result is one [affiliate dashboard](https://wecantrack.com/affiliate-dashboard/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description)
showing revenue, clicks, conversions and EPC across every network, broken down by
page, traffic source and campaign.

**Set up tracking in minutes, no developer needed**

 * **One-click install.** Add the plugin, paste your wecantrack API key, and tracking
   starts. No code and no tags to place by hand.
 * **Automatic click IDs.** The plugin inserts unique SubIDs in your affiliate links
   for you, so every conversion traces back to the exact click.
 * **Safe by design.** If the service is ever unreachable, links fall back to their
   original URL, so nothing breaks for your visitors.

**Works with your existing link setup**

Already cloaking links with **Pretty Links**, **ThirstyAffiliates**, **Lasso**, **
Redirection** or **Datafeedr**? Keep them. wecantrack runs alongside your cloaker
and places the click ID during the redirect, server side, adding [link cloaking](https://wecantrack.com/link-cloaking/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description)
and conversion attribution those plugins do not provide, without changing how you
work.

**Turn affiliate sales into marketing data**

Once your conversions are attributed, send them anywhere you optimise:

 * **[Google Analytics 4](https://wecantrack.com/affiliate-sales-in-google-analytics/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description).**
   See affiliate revenue as conversions next to the rest of your traffic, by landing
   page and source.
 * **[Google Ads](https://wecantrack.com/affiliate-sales-in-google-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Meta](https://wecantrack.com/affiliate-conversion-tracking-in-facebook/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Microsoft Ads](https://wecantrack.com/microsoft-ads-affiliate-conversion-tracking/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [TikTok](https://wecantrack.com/affiliate-conversion-tracking-tiktok-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Snapchat](https://wecantrack.com/affiliate-sales-tracking-in-snapchat-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Pinterest](https://wecantrack.com/affiliate-sales-tracking-in-pinterest-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Reddit](https://wecantrack.com/affiliate-conversion-tracking-in-reddit-ads/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description).**
   Feed real sales back to the ad platforms so smart bidding optimises on revenue,
   not clicks.
 * **[Looker Studio](https://wecantrack.com/affiliate-sales-in-looker-studio/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [BigQuery](https://wecantrack.com/installation/bigquery-integration/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description),
   [Zapier](https://wecantrack.com/zapier-affiliate-conversion-integration/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description)
   and webhooks.** Build custom dashboards or pipe the data into your own stack.

**Built for affiliate publishers**

Bloggers, media publishers, coupon and deal sites and price comparison sites use
wecantrack to see which content earns, retarget the right audiences, and run paid
campaigns on CPA and ROAS.

> “WeCanTrack takes the guessing out of affiliate marketing and provides a one-stop-
> shop for all your dashboarding needs. No more checking 5+ networks daily to see
> your commission, but enjoy the data and insights the way you like.”
>  _MissThing,
> WordPress.org review_
> “All the affiliate data gathered in one place, before using this software we would
> not even know where the conversions came from. Now we get detailed data about 
> EPC, CR and other data that we can use to increase our turnover.”
>  _arminza, WordPress.
> org review_

Rated 4.8 on WordPress.org and 4.9 on G2.

**What you need to know**

The plugin connects to your wecantrack account, which you can start with a free 
15-day trial, no credit card required. Creating an account and connecting your networks
takes about 10 minutes. Learn more on the [wecantrack WordPress plugin page](https://wecantrack.com/wordpress/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description).

### Translations

 * English – default, always included

### Credits

## Screenshots

[⌊Install the wecantrack plugin on your WordPress site in a few clicks, no code 
required.⌉⌊Install the wecantrack plugin on your WordPress site in a few clicks,
no code required.⌉[

Install the wecantrack plugin on your WordPress site in a few clicks, no code required.

[⌊All your affiliate network and website data in one dashboard. See revenue, clicks,
conversions and EPC by website, landing page, traffic source, advertiser and network
account.⌉⌊All your affiliate network and website data in one dashboard. See revenue,
clicks, conversions and EPC by website, landing page, traffic source, advertiser
and network account.⌉[

All your affiliate network and website data in one dashboard. See revenue, clicks,
conversions and EPC by website, landing page, traffic source, advertiser and network
account.

## Installation

 1. Create an account at [wecantrack.com](https://wecantrack.com).
 2. Connect your affiliate networks and websites using the [setup guide](https://wecantrack.com/installation/).
 3. Install the plugin: upload the `wecantrack` folder to `/wp-content/plugins/`, or
    install it from the Plugins screen in WordPress.
 4. Activate the plugin through the Plugins menu.
 5. Open the new `wecantrack` menu, go to Settings, paste your [API key](https://app.wecantrack.com/user/integrations/wecantrack/api)
    and click Verify.
 6. Follow the testing steps in the [WordPress plugin guide](https://wecantrack.com/installation/websites/wordpress-plugin/)
    before enabling.
 7. When the test passes, set Plugin status to `enable`, clear the `Enable plugin when
    URL contains` field, and save your changes.
 8. Test once more. You are done.

If a test does not pass, contact support@wecantrack.com and we will help.

## FAQ

### What does the wecantrack plugin do?

It adds a unique click ID to your affiliate links, tracks the sessions and clicks
on your site, and matches them to the conversion data wecantrack pulls from your
affiliate networks. You get one dashboard showing which pages, sources and campaigns
earn, and you can send that data to Google Analytics and your ad platforms.

### Do I need a wecantrack account?

Yes. The plugin connects your site to your wecantrack account using an API key. 
Creating an account is free and comes with a 15-day trial.

### Do I have to use the plugin, or can I use the JavaScript tag?

Either works. We recommend the plugin for WordPress sites because it stays compatible
with cloaking plugins and handles click IDs server side during the redirect.

### How do I track affiliate sales in Google Analytics?

Connect your networks in wecantrack, install this plugin, and enable the Google 
Analytics integration in your account. Attributed conversions then appear in GA4
as events next to your traffic. Full guide: [tracking affiliate sales in Google Analytics](https://wecantrack.com/affiliate-sales-in-google-analytics/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description).

### Can I optimise Google Ads, Meta or TikTok on affiliate conversions?

Yes. wecantrack pushes attributed affiliate sales to Google Ads, Meta, Microsoft,
TikTok, Snapchat, Pinterest and Reddit as conversions, so smart bidding can optimise
on real revenue.

### Which affiliate networks are supported?

More than 450, connected by API, postback URL or automated import. See the [full list of supported networks](https://wecantrack.com/affiliate-networks/?utm_source=wordpress&utm_medium=wecantrack-plugin&utm_campaign=description).

### Does it work with Pretty Links, ThirstyAffiliates or other cloaking plugins?

Yes. The plugin is compatible with Pretty Links, ThirstyAffiliates, Lasso, Redirection,
Datafeedr and most redirect plugins, and places the click ID during the redirect.

### What happens if wecantrack is unreachable? Will my links break?

No. Links fall back to their original URL, so your visitors are never affected.

### Why are some conversions not showing yet?

We can only attribute conversions that carry our click ID. Clicks from before you
installed can still convert under the network cookie window, so coverage grows over
the first few weeks. If clicks are not registering at all, it may be a cloaking,
caching or URL-pattern issue, so contact support@wecantrack.com.

### Are multisite installs supported?

Not yet. Contact support@wecantrack.com if you need this.

## Reviews

![](https://secure.gravatar.com/avatar/43011b7473a6736f9a6e4c7e5620234dae89876b0210d6eb44098c99e90b2380?
s=60&d=retro&r=g)

### 󠀁[Best plugin for affiliates. Ever.](https://wordpress.org/support/topic/best-plugin-for-affiliates-ever/)󠁿

 [betelguz](https://profiles.wordpress.org/betelguz/) 5. Dezember 2024

I’m an Aeronautical Engineer and an Industrial Engineer turned an affiliate blogger.
Sold one property for 750,000 USD in 2024, and in Nov 2023 all properties combined
made over 100,000 USD. I never give 5 stars. What WCT does in this era of evil corps
is a hidden gem. My #1 recommended plugin for serious affiliates. Extremely well
thought out, zero bullcrisp. Wouldn’t have been so successful without WCT.

![](https://secure.gravatar.com/avatar/d8aeddcd2e2b22d55ac9d307017f9d4c37ff3c5378604a25bc5ee4ae04339cab?
s=60&d=retro&r=g)

### 󠀁[GAME changing!](https://wordpress.org/support/topic/game-changing-11/)󠁿

 [ryanm](https://profiles.wordpress.org/ryanmillermiller/) 18. Juli 2024

Man I was doing all these manual uploads in order to pass the sale data through…
then I found WCT. It changed the game for me. Thanks for making such a great product!
It’s perfect for affiliate marketers. Well done.

![](https://secure.gravatar.com/avatar/5fceb2bda6bf773c5002b72704641df82df331662b00de299475d6ae375c357e?
s=60&d=retro&r=g)

### 󠀁[Slow plugin!](https://wordpress.org/support/topic/slow-plugin-7/)󠁿

 [NickB](https://profiles.wordpress.org/rickbakker/) 4. Abrëll 2023

Wir haben vielen besseren gefundet.. English: Fallback solution is not working? 
Missing convesrions and lack of updates in terms of features. And plugin slows website
down!

![](https://secure.gravatar.com/avatar/cab47b14301ccca928d53b78de02bea9a19442a9f025d3e7a16710806b0da862?
s=60&d=retro&r=g)

### 󠀁[Helped me see what was going well, and wat not](https://wordpress.org/support/topic/helped-me-see-what-was-going-well-and-wat-not/)󠁿

 [bartduurzaamthuis](https://profiles.wordpress.org/bartduurzaamthuis/) 28. Mee 
2022

Helped me alot with seeing what pages were doing well. And were improvements were
needed. Great to see al data together so well organised. For me the most important
thing was that I can now see on each seperate page what is happening with the sales.

![](https://secure.gravatar.com/avatar/a9690ce22c9c06ec56964420663037eae5f9c51752d19460ac07ade24599cf03?
s=60&d=retro&r=g)

### 󠀁[Great for affiliates who want more data!](https://wordpress.org/support/topic/great-for-affiliates-who-want-more-data/)󠁿

 [arminza](https://profiles.wordpress.org/arminza/) 29. Abrëll 2022 1 reply

Easy installation of tracking for affiliates. All the affiliate data gathered in
one place, before using this software we would not even know where the conversions
came from. Now we get detailed data about EPC, CR and other data that we can use
to increase our turnover. Also very easy to connect to the affiliate platforms which
is great. Highly recommended!

![](https://secure.gravatar.com/avatar/b91c162673268786050cf58b8328508a509ff63474d990e529170f84bb640553?
s=60&d=retro&r=g)

### 󠀁[Essential if you’re serious about being an affiliate](https://wordpress.org/support/topic/essential-if-youre-serious-about-being-an-affiliate/)󠁿

 [MissThing](https://profiles.wordpress.org/missthing/) 21. November 2021

WeCanTrack takes the guessing out of affiliate marketing and provides a one-stop-
shop for all your dashboarding needs. No more checking 5+ networks daily to see 
your commission, but enjoy the data and insights the way you like.

 [ Read all 12 reviews ](https://wordpress.org/support/plugin/wecantrack/reviews/)

## Contributors & Developers

“Affiliate Sales in Google Analytics and other tools” is open source software. The
following people have contributed to this plugin.

Contributors

 *   [ wecantrack ](https://profiles.wordpress.org/wecantrack/)

[Translate “Affiliate Sales in Google Analytics and other tools” into your language.](https://translate.wordpress.org/projects/wp-plugins/wecantrack)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wecantrack/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wecantrack/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wecantrack/) by 
[RSS](https://plugins.trac.wordpress.org/log/wecantrack/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 5.1.1 – 1st July 2026

 * Confirm compatibility with WordPress 7.0

#### 5.1.0 – 1st July 2026

 * Add website fallback for installs whose domain isn’t registered in your WeCanTrack
   account (e.g. staging sites). When the site URL isn’t found, a single website
   is selected automatically, or you can pick one from a dropdown; the choice is
   remembered and cleared automatically once the site’s real domain matches again.

#### 5.0.2 – 1st June 2026

 * Add `data-cookieconsent="ignore"` to v2 script tags when Cookiebot is the configured
   cookie consent provider

#### 5.0.1 – 30th March 2025

 * Fix options not persisting on hosts with object cache (e.g. Redis) when DB rows
   are missing

#### 5.0.0 – 12th March 2025

 * Add v2 script support, test suite, and bundle script
 * Use wct-3.com as default script domain with proxy override
 * Add twicedaily cron to refresh website options and tracking code
 * Secure debug endpoint with HMAC-SHA256 authentication
 * Security hardening and permission tests
 * Security fixes: API key in header, rate limiting, SSL verify, cron
 * Add standalone monetisation script for v2 when enabled and not bundled

#### 4.0.2 – 11th November 2025

 * Fix advanced form. The Include WCT Script shows false on null but should be true
   on null

#### 4.0.1 – 11th August 2025

 * Versioning fix

#### 2.0.5 – 9th July 2025

 * Regex pattern delimiter fix

#### 2.0.4 – 8th July 2025

 * Fix undefined error on form submit

#### 2.0.3 – 7th July 2025

 * Fix critical errors and warnings: added proper error handling and logging for
   thrown exceptions

#### 2.0.2 – 3rd July 2025

 * Fix Warning: Undefined array key “disable_ssl”

#### 2.0.1 – 19th June 2025

 * Removed redirect through parameter functionality
 * Refactor code
 * Security improvements

#### 1.5.1 – 27th February 2025

 * Disable cookie referrer by default
 * Change plugin title

#### 1.5.0 – 6th January 2025

 * Support WP 6.7.1
 * Sync wct script when upgrading plugin
 * Set afflink parameter off by default

#### 1.4.9 – 29th May 2024

 * Do not run WCT on a cron job

#### 1.4.8 – 20th March 2024

 * Redirect Through Parameter fix

#### 1.4.7 – 28th December 2023

 * New setting added to disable redirect through parameter

#### 1.4.6 – 16th October 2023

 * Detect Elementor’s & Divi’s page builder mode

#### 1.4.5 – 17th August 2023

 * Do not log relative URLs as faulty
 * WordPress 6.3 support

#### 1.4.4 – 10th January 2023

 * Fixed visual bug for disable wct.js script option

#### 1.4.3 – 21st December 2022

 * New option to disable wct.js script

#### 1.4.2 – 10th October 2022

 * Made thrive page builder detection pattern more greedy

#### 1.4.1 – 31st August 2022

 * Improved affiliate url pattern matching

#### 1.4.0 – 16th March 2022

 * Working on supporting WP multi-site. Better error messages.

#### 1.3.0 – 20th December 2021

 * Do not enqueue WCT JS Script in Thrive Architect

#### 1.2.12 – 27th October 2021

 * Overridable ssl verify option

#### 1.2.11 – 14th July 2021

 * Fix decoded deeplinks

#### 1.2.10 – 29th June 2021

 * New Settings section.
 * Setting section: new field to turn off referrer cookies
 * Extra failsafe: Double checking if redirect is encoded, if so, we’ll decode it
   before redirecting

#### 1.2.9 – 21st June 2021

 * Improved error logs

#### 1.2.8 – 9th February 2021

 * Update JS snippet when Plugin Updates. No need to click on Save on plugin update
   anymore.

#### 1.2.7 – 4th February 2021

 * Validation form bugfix for users where site_url() contains URIs

#### 1.2.6 – 4th February 2021

 * Preload will work with proxy. Moving away from cdn.wecantrack.com.
 * Fix where sometimes the snippet gets cleared when request fails after clicking
   on save
 * Moving away from app.wecantrack.com redirects, uncloaked URLs will default to
   internal /go domain instead. This redirect domain can be changed at app.wecantrack.
   com

#### 1.2.5 – 31st December 2020

 * Admin JS Fix for WP 5.6+
 * New bot pattern added:bing

#### 1.2.4 – 14th December 2020

 * Use home_url instead of site_url

#### 1.2.3 – 14th December 2020

 * Improved cache control

#### 1.2.2 – 8th December 2020

 * Improved affiliate link checker
 * Extra explanatory text added for Cache and ThirstyAffiliates

#### 1.2.1 – 29th September 2020

 * Status code fix for Redirect Page and redirect improvements
 * Better redirect cache controls
 * HTTP_REFERER fallback

#### 1.2.0 – 3rd September 2020

 * WeCanTrack navigation position set to 99 (underneath separator)
 * New module added (Redirect Page)
 * Better debugging capabilities added for the plugin
 * External domain tracking support for custom domains
 * Support to install lighter JS script (wct_session.js)
 * Tracking redirect_url in Clickout API

#### 1.1.2 – 23rd July 2020

 * Support facebook and youtube clickout referrers

#### 1.1.1 – 15th July 2020

 * Integrated redirect_through WCT option into the plugin
 * Disable Ezoic for WCT script
 * Load WCT script faster

#### 1.1.0 – 18th June 2020

 * Affiliate link checker regex fix
 * Bot detection

#### 1.0.9 – 16th June 2020

 * Use rawurldecode

#### 1.0.8 – 29th May 2020

 * Optimisations

#### 1.0.7 – 26th May 2020

 * Fixed admin HTML issue

#### 1.0.6 – 23rd May 2020

 * Simplify UI flow. Removed custom JS and Resync capabilities. Plugin will automatically
   handle that information in the background.

#### 1.0.5 – 16th May 2020

 * Compliant with any redirection plugins

#### 1.0.4 – 7th May 2020

 * Session based Plugin Enabler Fix

#### 1.0.3 – 30th April 2020

 * Fix a bug with verifying API key

#### 1.0.2 – 29th April 2020

 * Compliant with “Affiliate Plug.in”

#### 1.0.1 – 29th April 2020

 * Support redirect plugins: Redirection, Pretty Links
 * Admin Settings UI added
 * Implement i18n
 * Introduce cache invalidation for snippet.js
 * Only modify supported affiliate URLs

## Meta

 *  Version **5.1.1**
 *  Last updated **1 Dag ago**
 *  Active installations **1 000+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wecantrack/)
 * Tags
 * [affiliate dashboard](https://ltz.wordpress.org/plugins/tags/affiliate-dashboard/)
   [google analytics integration](https://ltz.wordpress.org/plugins/tags/google-analytics-integration/)
 *  [Advanced View](https://ltz.wordpress.org/plugins/wecantrack/advanced/)

## Ratings

 4.8 out of 5 stars.

 *  [  11 5-star reviews     ](https://wordpress.org/support/plugin/wecantrack/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wecantrack/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wecantrack/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/wecantrack/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wecantrack/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wecantrack/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wecantrack/reviews/)

## Contributors

 *   [ wecantrack ](https://profiles.wordpress.org/wecantrack/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wecantrack/)