Would need to be added to the switch ($vars['templatefile']) statement with a new case for the view products template file. We have no use for this as our product impressions occur outside of WHMCS.
Don't think this relevant anymore since the switch to GA4 events which have the view_item event which has already been implemented in a similar fashion as described above.
As shown in the documentation here: https://developers.google.com/tag-manager/enhanced-ecommerce
Would need to be added to the
switch ($vars['templatefile'])
statement with a new case for the view products template file. We have no use for this as our product impressions occur outside of WHMCS.