1. Home
  2. AccessAlly
  3. Metrics in AccessAlly
  4. Google Analytics (GA4) Purchase Tracking for AccessAlly

Google Analytics (GA4) Purchase Tracking for AccessAlly

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.

Create a Property in Google Analytics

Select the options that are the best match for your business details.

Describe Business details

Select your desired business objectives.

Select Business objectives

Select web (or skip for now if you’d like to review.)

Web or Skip

Add your site to both the website and stream name spots.

Data Stream setup

Click the view tag instruction button.

View Tag Instructions

And select install manually and copy the code.

Install manually

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.

WPCode

Add header code in WPCode.

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.

Debugger Extension

Now visit a page on your site and click the GA4 button. A message will appear letting you know this page is using GA4.

GA4 Success

You can also see your views being tracked in Google Analytics.

Views Being Tracked

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.

Click here to download the code as a .txt file.

Using the WPCode plugin (or adding to header) place this code below the previous code added at the start of this article.

Paste AccessAlly G4 Script

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

Thank You Page Settings

Under the Payment Success Tab:

  1. Note the order form ID number
  2. Note the order form name
  3. Select redirect to a thank you page
  4. Add the thank you page URL
  5. 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!

/?item=##&product_name=Order_Form_Name_Goes_Here_Payment

Final thank you page link example:

https://offerings.membershipsthatscale.com/thank-you/?item=66&product_name=Brilliant_Course_One_Payment

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!

Thank you tracking code success

View in GA4 after successful purchase event is tracked.

  1. Tracked thank you page visit.
  2. Tracked purchase event from your order form.

G4 Tracking Success

 

Updated on October 30, 2023

Was this article helpful?

Related Articles

NO QUESTION GOES UNANSWERED

If you have any questions, we're just an email away.

We take your success seriously, and you'll always get a speedy reply from a real person during business hours.

Laptop with the AccessAlly demo site

AccessAlly is the most flexible way to sell and elegantly deliver digital offerings. All in one place.

WATCH THE DEMO

You'll get follow-up emails about AccessAlly and new features. Opt out anytime. Full privacy policy here.