If you’re using AccessAlly order forms, you can take advantage of the built-in Metrics dashboard… but you might also want to pull the sales data into your existing Google 4 account.
Enable Google Analytics Ecommerce Tracking
The first step is to create a new property using your site URL.
Select the options that are the best match for your business details.
Select your desired business objectives.
Select web (or skip for now if you’d like to review.)
Add your site to both the website and stream name spots.
Click the view tag instruction button.
And select install manually and copy the code.
Add tracking code to the header of your site.
If you’re not familiar with this option or your theme doesn’t have a space to include it you can download the free WPCode plugin.
Add header code in WPCode.
Add the Debugger for Google Analytics 4 Extension to Chrome this will show you if your header code is working.
Now visit a page on your site and click the GA4 button. A message will appear letting you know this page is using GA4.
You can also see your views being tracked in Google Analytics.
Add AccessAlly GA4 Code to Header
Now it’s time to add the AccessAlly order form tracking script to the header section of your site. You can add this below the previous code.
Using the WPCode plugin (or adding to header) place this code below the previous code added at the start of this article.
Adjust Order Forms
Now it’s time to make changes to the order forms you would like to track. You can find your order forms by going to AccessAlly > Offerings > Forms or via the Sales Tab
Under the Payment Success Tab:
- Note the order form ID number
- Note the order form name
- Select redirect to a thank you page
- Add the thank you page URL
- Select append order info at the end of the thank you page
At the end of the thank you page URL add the following based on your order form ID number and order form name!
Final thank you page link example:
Make a Purchase
Now it’s time to go to the order form and make a purchase. The purchase must be on the order form you added the thank you page link with coding at the end to be tracked.
Thank you page successfully tracked!
View in GA4 after successful purchase event is tracked.
- Tracked thank you page visit.
- Tracked purchase event from your order form.