Home > Sales and automation reporting  >  Google ecommerce tracking

Google ecommerce tracking

Set up Google ecommerce tracking so you can analyze detailed sales activity on your site — and make informed decisions about your business.
In this lesson you'll learn:
  • How to create a property in Google Analytics and add your global site tag to your pages
  • How to set up your Ontraport order forms and thank you pages so they’re sending data to Google
  • How to test that you’ve set things up correctly

Comments

[Block//Author//First Name ##cap_first] [Block//Author//Last Name ##cap_first] on [Block//Date Added %F j, Y g:i a%+0d0h0m]
[Block//Comment]

Leave your comment

settings
settings
settings
settings
14-day free trial. No commitment.
Start your free trial to start growing your business with Ontraport.

Related resources

[Block//Resource Type]
[Block//Resource Description ##ellipsis(166)]
arrow_forward
Read more

Transcript

Google ecommerce tracking sends the purchases from your Ontraport order forms to Google Analytics 4. Then you can see things like which Google Ads are converting, your average order value, and how long your sales cycle is. It's available on some account levels, so check the pricing page for yours. If you set this up years ago, note that Google stopped collecting Universal Analytics data in July 2023. These steps use GA4. And analytics only records what happens after you set it up, so it's worth doing this before you need the data. There are three parts. Create a GA4 property and add the Google tag to your pages. Turn on one setting in your order form. Then add Ontraport's script to your thank-you page. You'll paste some code, but you won't have to write any. If you don't have a GA4 property yet, sign in to Google Analytics and click Start measuring. Name your account, then create a property, and pick your reporting time zone and currency. Answer a few questions about your business and accept the terms. Then choose Web and create a data stream with your website's address. On the Install your Google tag page, click Install manually and copy your Google tag. In Ontraport, open a page you want to track. Click Settings, then Custom code, then Header, and paste the tag. Save and publish, then repeat for every page you want to track. Make sure your thank-you page is one of them. Basic Google tag tracking works on every account level. If your pages belong to an Ontraport Site, you can paste the tag once instead. Open the site, go to the Advanced tab, and paste it under Sitewide code. It's added to every page on the site. Next, open your order form. It can be on an Ontraport Page or a standalone Ontraform. On a page, click the Submit button, then Form Settings. In an Ontraform, click the Order Form block, then Form Settings. Scroll to the Advanced section and check Send Google Ecommerce Tracking Parameters to the Thank You page. Click Save, then Publish, then Save & Publish. If you've embedded an Ontraform on your site, you don't need to embed it again. Now, after each purchase, the form passes the order details to your thank-you page. Last, the thank-you page your order form sends buyers to. Click Pages in the top navigation and open it. Check that the Google tag is in its header. Then copy Ontraport's GA4 ecommerce script from the Support Center article Integrate Ontraport with Google Analytics. Click Settings, then Custom Code, choose the Body tab, and paste the script. Click Done, then save and publish. The script reports sales in US dollars. If you sell in another currency, or want to send more details, you can copy the script and modify it. That takes some coding, so you may want a developer's help. The order details travel through your thank-you page. So purchases you add by hand, or create through the API, won't reach Google Analytics. Now test your order form, as shown in the Testing an order form lesson. Data can take 24 hours to appear in Google Analytics, so check back the next day for your purchase. If it's still missing, the same Support Center article has debugging tips. And to send other conversions to Google, like opt-ins or demo requests, see the Deep funnel conversions lesson. So: add the Google tag to your pages, turn on the ecommerce setting in your order form, paste Ontraport's script into your thank-you page, then test it and give it a day. Next up: Sales reports, where you'll see your sales right inside Ontraport.
Get started with Ontraport for free

Start gaining the skills to grow your business faster

settings
14 days free. No commitment.
Google Review Trustpilot Review G2 Review Capterra Review
Get started with Ontraport for free

Start gaining the skills to grow your business faster

settings
14 days free. No commitment.
© Ontraport 2026
playlist_add_check
PCI DSS, Level 1
security
EU-U.S. Data Privacy Framework.
[bot_catcher]