Enable eCommerce Tracking for WooCommerce

Want to track your eCommerce sales data? To start tracking your sales data, first you’ll need to enable eCommerce tracking in Google Analytics account.

Follow below simple steps to enable eCommerce tracking in Google Analytics account:

  • First, you’ll need to log in to Google Analytics.
  • Then, select the website(property).
  • Next, click Admin in the menu bar
  • Now click eCommerce Settings.
Enable eCommerce tracking in google account
Enable eCommerce tracking in Google account
  • Next, click on Enable eCommerce, to turn it on. Then click the Next Step button.
Enable Ecommerce then click the Next Step button
Enable Ecommerce then click the Next Step button

Add Google Analytics eCommerce tracking code:

Open thankyou.php file from woocommerce/checkout directory.

Place below code at the end of file:

That’s it, just make test transaction and check in Google analytics after some time. Your sales data will be visible.

 

Thank you.

Keep code!