Ecommerce Tracking in Force24
What It Is
Ecommerce tracking in Force24 links the sales that happen on your website with the marketing campaigns that influenced them. The goal is to identify which contacts engaged with your campaigns and whether that engagement resulted in a purchase.
Force24 does not attempt to record every sale made on your website. Instead, it measures campaign-driven sales - purchases made by people who have interacted with your marketing emails.
How Ecommerce Tracking Works
Cookies and Identification
When a contact clicks a link in a Force24 email campaign, a tracking cookie is placed in their browser on that specific device.
This cookie connects their website activity to their Force24 contact record. Once the ecommerce tracking script is added, any purchases they make can also be linked to that contact record, provided the purchase occurs within the attribution window outlined below.
Without this cookie, Force24 cannot identify the visitor and therefore cannot track their website activity or purchase activity.
Attribution Window
When a contact opens or clicks a campaign, any purchase they make within 7 days of that interaction is attributed to the campaign that was most recently engaged with.
Purchases made outside of this 7-day window are not linked back to any campaign.
Web Data Flow
A typical tracked customer journey might look like:
Product Page → Basket → Checkout → Thank You Page
As contacts move through tracked pages, Force24 records those page visits.
When the ecommerce tracking script is triggered after a successful purchase, Force24 also records the transaction value.
When a Purchase Is Recorded
Your developer should add the ecommerce tracking script to the order confirmation or thank you page.
The script should fire on that page after the transaction information has loaded, allowing Force24 to receive the purchase data.
Technically, this is a standard web tracking event with additional transaction data attached.
If Force24 cannot see the activity - for example because:
- The cookie was blocked
- The contact never clicked a Force24-tracked link
- The thank you page is not being tracked
then the purchase will not be registered.
Adding the Ecommerce Tracking Script
The Script
f24("event", "wa_page_view", {loc: window.location.origin, CheckOutAmount: amountgoeshere});Your developer should add this script so that it fires on the order confirmation or thank you page after the transaction data has loaded.
Replace amountgoeshere with the transaction value. This can come from:
- A variable defined on the page
- Your website's data layer
CheckOutAmount
The CheckOutAmount field is currency agnostic and accepts any float value.
Important
The page must also contain the standard Force24 tracking script, as the f24() function is defined within that tracking script.
Without the standard Force24 tracking script present, the ecommerce tracking event cannot run.
What You'll See in Reports
Ecommerce Statistics by Campaign
Purchases are only visible in campaign ecommerce reports if they can be linked to a campaign interaction.
For example:
If someone visits your website directly and makes a purchase without interacting with a Force24 email, that purchase will not appear in Force24 ecommerce campaign reporting.
Contact-Level Detail
Within an individual contact record, you can see:
- Whether the contact was cookied
- Which pages they visited
- Whether Force24 recorded a purchase
If purchase data appears to be missing, the most common reasons are:
- The cookie was never set
- Tracking was not present on one or more pages
- The purchase occurred outside the attribution window
Common Pitfalls
No Cookie, No Data
If someone makes a purchase but has never clicked a Force24 campaign link, Force24 cannot connect that purchase to their contact record.
Cross-Domain Issues
Cookies are tied to tracked domains.
If the checkout process takes place on a different, untracked domain - for example:
example.comshop.example.com
or the user only has a cookie associated with one of those domains, tracking will not take place.
Ad Blockers and Privacy Tools
Some users block cookies or tracking scripts.
In these cases, purchases may never appear in Force24, even if the user clicked a campaign link.
Untracked Thank You Pages
If the order confirmation or thank you page is not tracked by Force24, purchases will not be recorded.
Why Ecommerce Tracking Matters
Measure True Campaign ROI
Ecommerce tracking allows you to measure the revenue generated by your campaigns, not just opens, clicks, or website visits.
Identify Revenue-Generating Campaigns
You can see which campaigns are driving actual sales, helping you understand which emails contribute most effectively to revenue generation.
Examples
Jane
Jane receives your "Autumn Sale" email.
- She clicks a tracked link in the email.
- Force24 places a cookie in her browser.
- She browses your website and leaves.
- Three days later, she returns and makes a purchase.
- The ecommerce tracking script fires on the confirmation page.
- Force24 receives the page view and
CheckOutAmount.
The purchase is attributed to the "Autumn Sale" campaign and appears in that campaign's ecommerce reporting.
Joan
Joan receives your "Autumn Sale" email.
- She clicks a tracked link in the email.
- Force24 places a cookie in her browser.
- She browses and leaves.
- Two days later, she engages with a previous "Hot Products" email that was sent four days earlier.
- She then makes a purchase.
- The ecommerce tracking script fires on the confirmation page.
- Force24 receives the page view and
CheckOutAmount.
The purchase is attributed to "Hot Products", because it was the most recently engaged campaign.
Jill
Jill receives your "Autumn Sale" email.
- She clicks a tracked link in the email.
- Force24 places a cookie in her browser.
- She browses and leaves.
- She later engages with another email called "Autumn Sale Reminder".
- She then makes a purchase.
- The ecommerce tracking script fires on the confirmation page.
- Force24 receives the page view and
CheckOutAmount.
The purchase is attributed to "Autumn Sale Reminder", because it was the most recently engaged campaign.
Jenny
Jenny receives your "Autumn Sale" email.
- She clicks a tracked link in the email.
- Force24 places a cookie in her browser.
- She browses and leaves.
- Nine days later, she returns and makes a purchase without engaging with any further campaigns.
- The ecommerce tracking script fires on the confirmation page.
- Force24 receives the page view and
CheckOutAmount.
The purchase is not attributed to any campaign because it occurred outside the 7-day attribution window.
Ecommerce Tracking Checklist
For reliable ecommerce reporting, ensure that:
- All campaign links are Force24 tracked.
- The checkout and thank you pages contain the standard Force24 tracking script.
- The ecommerce tracking script is implemented on the order confirmation or thank you page.
- Test purchases are completed and verified within Force24 reporting.
Following this checklist helps ensure purchases are correctly attributed and reported within Force24.