WooCommerce and Google Analytics integration

WooCommerce and Google Analytics integration

Google Analytics

 is a web analytics offered by google that is connected to your website through a piece of tracking code they tracks and reports website traffic, currently as a platform inside the brand etc. Google Analytics is now the most widely used web analytics service on the Internet.

Integration with WordPress

Once your store is up and running, it’s important to start working on improvements. To be able to do that you first need to collect data about your visitors. Google Analytics is the free and most widely used tool to do so. If you’ve ever run any website before, you’re probably familiar with it.

Unfortunately, even if you have already connected your website to Google Analytics, it will not track conversions. Since that is important to have available, we need to take additional steps to solve this issue. By searching the WordPress.org plugin repository, some plugins are available, but none of these have been actively maintained at the moment of writing.

To create this plugin, follow these steps:
  • Check your active theme’s header.php file to ensure it includes the hook.
  • Create a new file in your plugins folder
  • Get your analytics tracking code from the Google analytics site
  • Add some code including the tracking code to your plugin
  • Activate the plugin




Related posts