AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

1.9K members online now
1.9K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
Guide Me

Google tracking code question

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Currently, we have a G/a tracking code setup on our website, however, we also have a woo commerce site (which is a subdomain) built into our existing website which requires tracking too. Hope that makes sense?

Could someone please share best practice when it comes to adding G/a tracking to this subdomain (woo commerce site)?

Furthermore, is there also a protocol in enable the e-commerce settings?

Thank you.

1 Expert replyverified_user

Google tracking code question

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hi @Simon K,


You can follow this guide to setup GA tracking on your website's subdomain.


Hope this helps




Google tracking code question

Top Contributor
# 3
Top Contributor

Hi @Simon K :-)
is the subdomain that has woocommerce a wordpress site?

If so, then you may want to look at one of the freely available plugins for integrating analytics with woocommerce



Keep in mind if you are using a payment gateway such as paypal and returning ppl to the site, 

you will need to add this to the referral exclusion list.
Others may require setup of cross domain tracking between the subdomain and the site that controls


To track just between the domain and its subdomain (woocommerce install) then as @Vaibhav R mentions, that will likely need a subdomain setup.


Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

Re: Google tracking code question

Follower ✭ ✭ ☆
# 4
Follower ✭ ✭ ☆

Hi @Simon K,


WooCommerce is a module of WordPress only. The best plugin for WooCommerce analytics is 

Google Analytics Dashboard for WP


You can use this plugin to implement Google Analytics tracking in your WooCommerce store.


You can follow this guide for step by step installation of Google Analytics Dashboard plugin on your woocommerce store.


Additionally, This plugin will help you enable the e-commerce settings as well.


Hope this helps. Smiley Happy