Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 GA4 Tracking & Purchase Issues
Author « Topic »  

trendyhounds
Advanced Member

262 Posts

Posted - 12/02/2026 :  15:11:19  
I've been working on getting Google Analytics 4 (GA4) set up to accurately track website traffic, marketing campaigns, and sales. Today, I reviewed the purchase reports and compared them against my actual website orders from a recent sale. I found some discrepancies.

Setup information:
The Google Analytics 4 global site tag is entered in the Analytics 4 field in my vsadmin.

Reporting period: November 29 – December 1, 2026

Actual website orders:
1. 11 completed orders
2. Original order total before discounts: $619.80
3. Discounts applied: $86.16
4. Actual sales after discounts: $533.64

What GA4 recorded:
1. 10 purchase events
2. Total revenue: $562.00
3. The Transaction ID dimension shows "(not set)".


After comparing the numbers, I found the following discrepancies:

1. GA4 appears to be recording amounts before discounts rather than the actual amount customers paid. For example, on December 1, GA4 recorded $203.30, which matches the original prices of the four orders, but those orders totaled only $176.60 after discounts.

2. One completed order totaling $55.80 before discounts does not appear to have been recorded as a purchase in GA4. This order was placed on November 30, 2026.


My questions:

1. Is there a way to make the GA4 purchase event capture the final order total after discounts, rather than the original product prices?

2. Is there a way to have the transaction_id (Order ID) sent with each purchase?

3. Any idea why GA4 would have missed the November 30 order completely?


My goal is to accurately measure which email campaigns, Facebook/Instagram posts, and other marketing efforts are generating actual sales.

I'd appreciate any suggestions or guidance on what I should check or change to get the ecommerce tracking working correctly.

dbdave
ECT Moderator

USA
10831 Posts

Posted - 12/02/2026 :  15:23:37  
Hello, many browsers these days allow visitors to block trackers - including google analytics.
It's not going to be a reliable tool (for tracking ROI) in my opinion.
What I do is leverage the affiliate tool and append our url's with a unique code to get better tracking of your ROI.
It's much more reliable and there is no extensive setup required.

Thanks,
David

trendyhounds
Advanced Member

262 Posts

Posted - 12/02/2026 :  15:31:02  
Thanks David,

I'm not familiar with affiliate tools, so I'm trying to understand how this would work.

Are you referring to an affiliate feature within the shopping cart software, or a separate tool?

Would I be able to create unique tracking links for my Mailchimp emails, Facebook, Instagram, and Pinterest to see which ones generate actual website orders?

Would the tracking show the actual order total after discounts?

I'm interested in learning more about this, but I'm not sure how it works.

dbdave
ECT Moderator

USA
10831 Posts

Posted - 12/02/2026 :  15:58:43  
Hi Go to Admin>Store Admin>affiliates

Click "New Affiliate"
Enter a unique Affiliate ID - lets say "FB1226" might be for facebook ads run in December 2026
For the name - I enter what the affiliate ID is for - such as Facebook dec 2026
I just fill in random stuff for the rest of the required fields.
Inform me will send you an email to the email address you have inserted there in the form.

Create your URL by grabbing the link from your website and adding the affiliate code.
https://www.yoursite.com//proddetail.php?prod=keyboard001&partner=your_affiliate_id

This places a cookie on the users PC and if they make a purchase - even later, it will be linked to the affiliate code.
There is a parameter setting you can establish how long the cookie saves. I think I have mine set to30 days and I do not recall what the default is.

From there you can get reports (by setting a date range) from the same affiliate page in your admin once orders come in with an affiliate code.



Affiliate program info here - but really you would not setup any of the front end stuff unless you want clients to use it.
https://www.ecommercetemplates.com/help/affiliate_program.asp

I am pretty sure it only gives you the total paid on products as you would not payout an affiliate for shipping charges (or sales tax) you collected.

Thanks,
David

trendyhounds
Advanced Member

262 Posts

Posted - 12/02/2026 :  16:45:01  
Thank you again David. This is very helpful.

dbdave
ECT Moderator

USA
10831 Posts

Posted - 12/02/2026 :  20:23:29  
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000