New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How do I track WHMCS sales with Google Tag Manager?
I want to track sales with WHMCS, but I can't find much information on the internet or from official support. I'm using GTM (Google Tag Manager) and somehow enabled the data layer, but there is no option to track sales reliably. Even if I track the order completion URL (WHMCS URL/cart.php?a=complete), it's not reliable since unpaid orders will also be tracked that way. Is anyone here doing this?
Thanked by 1tjn

Comments
Try AI?
We went through this painful process. There's no real way to do it reliably.
Create a custom event and mark this event as conversion in GA.
Do you mean GTM? I am not using GA4 for my website, I use other analytics tools.
But yeah, your method sounds good. I can use both variables to capture this event.
URL: WHMCS URL/cart.php?a=complete
Text: Paid
Yes, custom event created on GTM. I thought you're using GA.
The method should work on any analytical tool, as long as you set the trigger and condition correctly.
I checked the checkout page. The 'Paid' text only appears when paying an invoice, not for a fresh order
Not all payment methods are instant, this isn't a reliable way.
It is possible, because I've done it before, similar situation.
Check this out: https://www.analyticsmania.com/post/track-element-visibility-based-on-text-with-google-tag-manager/
With GTM, load your analytics on all pages and trigger a custom event when a text appears.
If the condition matches, it will trigger or fire an event. In Google Analytics, we can set that event as a key event or goal, allowing us to calculate conversions and their values.
I only using Google Analytics as of right now, don't have experience with other tool.