Are you running an eCommerce site on WordPress using WooCommerce? Would you like an easy way to track sales conversions in Analytics without any premium plugins or difficult coding? You can create a simple goal in Google Analytics that will fire each time someone completes a purchase in WooCommerce by simply looking out for the order received URL snippet that is accessed following a successful completion.
Tracking WooCommerce sales in WordPress through Analytics
To set up a Google Analytics goal for sales on WooCommerce, you must first access the Admin panel. Once there, make sure the property is that of the website you want to track, and the view is all website data. In the view column, select goals to get started.
Analytics goal creation instructions
Here you can create a new goal by using the built-in wizard. There are three steps to setting up a goal in Analytics this way.
- Goal Setup – You can select “place an order” as the template of choice and move on.
- Goal Description – Name your goal “Completed Purchase” or something similar to help identify it from other goals. Select destination as the type of goal.
- Goal Details – In the details, under Destination, select Regular Expression and enter “checkout/order-received/” into the text box. You can optionally apply a monetary value to each completed purchase.
Once you’ve finished these steps, you can click verify this goal to ensure that everything is working properly. If you’ve had previous completed sales in the last 7 days, then you will receive a non-zero value for the conversion rate.
Verify your goal is being tracked
This WooCommerce goal works for all purchases made through a WooCommerce installation on WordPress in any language if you are using WPML for translations. By default, WooCommerce will incorporate this endpoint into your domain’s URL. The exact location can change depending on settings, but we’re only looking for the specific text expression itself, anything else will be ignored.
If everything looks in order, click save and you’ll begin gathering data on WooCommerce conversions. You can now see which campaigns and sources perform better than others, to maximize your return on investment and plan for future marketing expansions!