LOG IN OR SIGN UP
Log in to your account
Sign up

How To Set Up WordPress eCommerce Tracking With GTM

17 December 2019 | 0 comments | Posted by Che Kohler in Shopaholics

Track eCommerce with WordPress and Google Tag Manager

Running your eCommerce business on WordPress is a popular choice for many small businesses looking to break into the digital space. WordPress, along with its eCommerce package WooCommerce has made it easy to adopt WordPress sites into powerful online shopping front ends.

While having an eCommerce store is one challenge; tracking what people look at and want to purchase is something entirely different. Google Analytics offers site owners a fantastic free tool for monitoring eCommerce transactions and attributing the purchases to specific traffic sources or campaigns.

While Google Analytics will track traffic automatically, it will not track transactions by default. To push purchasing data through to Google Analytics, you need to have eCommerce tracking enabled.

If you're running your Google Analytics via Google Tag Manager (which I would always recommend), then here's how to to set up eCommerce tracking on WordPress using GTM.

Already Have GTM Installed

  1. Download the plugin Google Tag Manager for Wordpress by Thomas Geiger
  2. Install the plugin
  3. Navigate to your settings menu
  4. Click on "Google Tag Manager"
  5. Under Tag Manager ID - Add your container/account ID
  6. Select "Off (only add data layer to the page source)"
  7. Next, select the integration tab
  8. Click on WooCommerce
  9. Click save changes

Don't have GTM installed

If you don't have a GTM account, head to tagmanager.google.com and create one first. Once you have an account you can head back to your WordPress site and start with the steps below.

  1. Download the plugin Google Tag Manager for Wordpress by Thomas Geiger
  2. Install the plugin
  3. Navigate to your settings menu
  4. Click on "Google Tag Manager"
  5. Under Tag Manager ID - Add your container/account ID
  6. Select custom injection
  7. Next, select the integration tab
  8. Click on WooCommerce
  9. Click save changes

Open Google Analytics

  1. Once activated, log in to your Google Analytics dashboard
  2. Next, you'll need to click on your website name where you want to set up
  3. eCommerce tracking
  4. Now, go to the Admin settings in the left-hand sidebar
  5. On this page, you'll need to go to eCommerce Settings on the right side of your screen
  6. Next, enable the Status and Related Products options. We've discussed these options above in the introduction
  7. Once enabled, click on the Next button to continue

Open Google Tag Manager

  1. Create a new tag
  2. Give it a name - eCommerce Tracking Tag
  3. Select Google Analytics Universal Tracking as the tag template
  4. Set track type to "transaction"
  5. Pre-tick - Enable overriding settings in this tag
  6. Add your Google Analytics ID
  7. Create your trigger
  8. Select custom event
  9. Add the following under even name - "gtm4wp.orderCompletedEC"
  10. Set fire this trigger to "All Custom Events"
  11. Save your trigger
  12. Save your tag
  13. Submit/publish your changes

You're now eCommerce enabled

There you have it; it may be slightly painful jumping between the three interfaces to get it done but trust me it beats having to hard code your eCommerce tracking as we used to have to do in the past.

Happy tracking and I wish you many more sales to come.

Note: If you do not have Google Tag Manager running on your site but would still like to set up eCommerce tracking then check out our article on eCommerce tracking for WordPress using Monster Insights.

Want to improve your eCommerce tracking

If you have no clue on how to set up website tracking and would like an expert to handle it for you, feel free to contact us.

Are you looking to promote your business?

South African Business owners can create your free business listing on nichemarket. The more information you provide about your business, the easier it will be for your customers to find you online. Registering with nichemarket is easy; all you will need to do is head over to our sign up form and follow the instructions.

If you require a more detailed guide on how to create your profile or your listing, then we highly recommend you check out the following articles. 

Recommended reading

If you enjoyed this post and have a little extra time to dive deeper down the rabbit hole, why not check out the following posts about eCommerce.

Tags: eCommerce, WordPress, Google Tag Manger, Google Analytics

Previous: {{ previousBlog.sTitle }}

Posted {{ previousBlog.dtDatePosting }}

Next: {{ nextBlog.sTitle }}

Posted {{ nextBlog.dtDatePosting }}

You might also like

Improving Prop Firm Trader techniques

How to Improve Your Decision-Making Skills as a Prop Firm Trader

02 December 2024

Posted by Nina Sandic in Money Talks


Key strategies that drive decision-making skills in prop trading. Master risk management, emotional control, and analytical techniques to boost your ...

Read more
Google deindexing reputation abuse

Google Ramps Up De-indexing of Domain Reputation Abuse

24 November 2024

Posted by Che Kohler in nichemarket Advice


Google continues to fight against publishers, removing their pages from search results for unrelated made-for-advertising content or affiliate-only c...

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter