Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.

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?

  • MrRadicMrRadic Host Rep, Veteran

    @Gara said:
    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?

    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.

    • Track that a particular text is appear, eg: Paid.
    • Fire that trigger as a custom event.
    • Set that event in GA as conversion/key event.
  • GaraGara Member
    edited September 2024

    @Dazzle said: 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

  • @Gara said:

    @Dazzle said: 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.

  • @Dazzle said: 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

  • MrRadicMrRadic Host Rep, Veteran

    @Dazzle said:
    Create a custom event and mark this event as conversion in GA.

    • Track that a particular text is appear, eg: Paid.
    • Fire that trigger as a custom event.
    • Set that event in GA as conversion/key event.

    Not all payment methods are instant, this isn't a reliable way.

  • @Gara said:

    @Dazzle said: 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

    @MrRadic said:

    @Dazzle said:
    Create a custom event and mark this event as conversion in GA.

    • Track that a particular text is appear, eg: Paid.
    • Fire that trigger as a custom event.
    • Set that event in GA as conversion/key event.

    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.

Sign In or Register to comment.