Hi,
I updated my website code to use GA4 (gtag.js) tracking code, previously I had the older GA (analytics.js) code where I set up different events like the following within my website code for each account step.
ga('send', 'pageview', '/ConversionEvents/MembershipPlan');
ga('send', 'pageview', '/ConversionEvents/AccountInformation');
ga('send', 'pageview', '/ConversionEvents/PaymentInformation');
ga('send', 'pageview', '/ConversionEvents/AccountConfirmation');
ga('send', 'pageview', '/ConversionEvents/ThankYou');
However, now that I'm using GA4 and installed the GTM tracking code on my website, I'm trying to figure out how I can accomplish this with GTM.
Please see below screenshot image links.
https://gyazo.com/05414d242b913e94c49c86cfc2adeb6d
https://gyazo.com/ca698a9268bf3003b3d953432305a923
I'm thinking maybe I could use either the "Class Element" or "Form Element" data to set this up properly. The only section that I can see that could be useful is the "#step-1" and "#step-2" sections but I'm not sure how to set this up in GTM. Can someone please help point me in the right direction on this?
Or is there a way I can still use the "ga('send', 'pageview', '/ConversionEvents/MembershipPlan');" type events within my code with GA4?
Thank you!