The instructions for setting up the Google tag are different for different tag IDs, so you’ll need to follow the instructions that correspond with your tag.
If you have a tag starting with "AW-"
Tags that start with “AW-” are generally associated with Google Ads accounts.
Before you begin
You can integrate your WooCommerce account with Google Ads or Google Analytics for free. To set up the integration, you’ll need:
- A valid Google sign-in
- A Google-provided Javascript code box
- An active WooCommerce account
This integration is native to WooCommerce and will allow you to track “Sales” or “Page view” conversions . Additional features (like enhanced ecommerce functionality) can be accessed after setup. Learn more about Google Ads conversion types .
WooCommerce uses its own Google Ads plugin that is installed separately from the base installation. Follow the steps below to install the plugin and set up your tracking tags.
- Sign in to your WordPress admin console.
- From the page menu on the left, click Plugins.
- On the “Plugins” page, click Add New.
- On the “Plugins” page under “Search Results”, enter “Google for WooCommerce” and click Install Nowto go to setup automatically After you click "Install Now", you'll be taken to setup automatically.
- Click Sell more on Googleto begin.
- Click Connectto connect your site to WordPress.
- Enter your WordPress email address or username and click Continue.
- Enter your email address or username and password and click Log In.
- Approve the connection to WordPress.
- Connect to Google by checking the box to accept the terms and conditions and clicking Connect.
- Choose your Google account.
- Grant permission for WooCommerce to access your Google Account.
- Choose an existing account from the drop-down list and click Connect
- Choose your catalog to use and click Connect.
- After the catalog is connected, click Continue.
- Finish the final steps and click Complete setup.
If you have a tag starting with "G-"
Tags that start with “G-” are generally associated with Google Analytics accounts.
Before you begin
You can integrate your WooCommerce account with Google Ads or Google Analytics for free. To set up the integration, you’ll need:
- A Google tag ID
- An active WooCommerce account
WooCommerce uses its own Google Analytics plugin that is installed separately from the base installation. Follow the steps below to install the plugin and set up your tracking tags.
You can set up conversion tracking tags and measure behavioral data about your site with Google Ads and Google Analytics. Follow the steps in this article to set up a tag for your Google Ads or Google Analytics account with WooCommerce.
- Sign in to your WordPress admin console.
- From the page menu on the left, click Plugins.
- On the “Plugins” page, click Add New.
- On the “Plugins” page under “Search Results”, enter “Google Analytics for WooCommerce” and click Install Now.
- Once the plugin is downloaded and installed, click Installed Pluginsunder the "Plugins" drop down.
- Under “WooCommerce Google Analytics Integration”, click Activate.
- Once the plugin is activated, the “Plugins” page will reload. Click Settingsunder the “Google Analytics for WooCommerce” Plugin.
- Enter your Google tag ID into the Google Analytics Tracking ID box provided and confirm that “Use Global Site Tag” is checked. Click Save Changes.

