Whilst GA4 is relatively new, I'm surprised to not be able to find much talk, let alone any references, on how to include the necessary data layer events within WHMCS' order form template files. What little I have found is so very out-of-date and no longer applicable (that I can see, anyway).
So, looking at https://developers.google.com/analytics/devguides/collection/ga4/ecommerce#purchase as a starter, I can't work out how to include this example (including the example data, as I want to see it working) in /orderforms/standard_cart/complete.tpl.
Then, of course, is ensuring that my order-specific data replaces that of Google's example.
So, the short question here is - how do we include Google Analytics events within WHMCS template files?
Has no-one here done this (recently, so that it is still relevant to WMCS v8 and/or GA4)?
I don't suppose @brian! can offer some insight here?
As always, thanks for any help provided.