WooCommerce Google Analytics Pro

Google Analytics is a free web analytics tool that tracks visitors and pageviews on your site. WooCommerce Google Analytics Pro integrates with your Google Analytics account to track eCommerce events in your store, including advanced event tracking such as purchases, product reviews, coupon usage, full order refunds, and more.

Uses enhanced eCommerce tracking to provide valuable metrics on your store’s performance.

Not sure if you need the free plugin or this Pro version? Check out our comparison here.

Installation ↑ Back to top

  1. Download the extension from your WooCommerce dashboard
  2. Go to Plugins > Add New > Upload and select the ZIP file you just downloaded
  3. Click Install Now, and then Activate
  4. Click the Configure link and read the next section to learn how to setup and configure the plugin.

Setup and Configuration ↑ Back to top

Configure the plugin by going to WooCommerce > Settings > Integrations. You will see ‘Google Analytics Pro’ listed as an option. Click this to see the settings.

Extension Settings ↑ Back to top

  • Enable GA Tracking – Enable / check this to enable Google Analytics tracking. Disable this to disable tracking completely.
  • Google Analytics Property – Click to authenticate the plugin with the Google Analytics Property for your site.
  • Google Analytics Tracking ID – (If manually entering a tracking ID — not recommended) Input your Google Analytics property’s tracking ID to track events under the correct property.
  • Track Administrators? – Enable this to track actions by administrators and shop administrators. Leave disabled to exclude events from these users.
  • Tracking Options – Determine if you want to enable Display Advertising, Use Enhanced Link Attribution, Anonymize IP address (may be required by your country), and / or Track User IDs. We recommend anonymizing IP addresses and tracking user IDs, as tracking user IDs counts logged in users as one user (even across multiple devices), making your user count more accurate.
  • Track Product impressions on – Determine when product impressions should be tracked: on single product pages, and / or archive pages (ie the shop). If you encounter “No HTTP response detected” errors, chances are you’re tracking more impressions than Google Analytics allows; please remove “Archive pages” from this setting if so.
  • Logging – Log nothing (default), or turn on to add debugging information to the PHP error log. Be careful when enabling this on a busy site, as it can quickly flood the PHP error log. For best performance, leave logging disabled unless you experience issues with the plugin.
WooCommerce Google Analytics Pro - settings 1
Plugin Settings

Customize Event Names ↑ Back to top

Every event name sent to Google Analytics can be changed by editing the text field associated with each event. This is useful if you have an existing implementation and want to keep your event names consistent.

WooCommerce Google Analytics: Event Names 1

To disable tracking of a particular event, clear the text field associated the event.

  • Signed In – Triggered when a customer signs in. The sign in can occur anywhere (wp-login.php, my account page, sign in widget, etc) and it will be tracked. Users are identified as soon as they login and are tracked as that identity until they logout (if you enable user ID tracking).
  • Signed Out – Triggered when a customer signs out. Identities are cleared upon logout, so if multiple people use the same computers but use different logins, this will help to track them all accurately.
  • Viewed Signup – Triggered when a visitor views the sign up (my account / registration) page. Hooks into the WordPress register form and will track anywhere it is used.
  • Signed Up – Triggered when a visitor registers an account. Hooks into the WordPress registration system and will track registrations anywhere the WordPress register form is used.
  • Viewed Homepage – Triggered when a visitor views the homepage.
  • Viewed Product – Triggered when a visitor views a single product. The ‘Product Name’ is tracked as an event label.
  • Clicked Product – Triggered when a visitor clicks on a product in a listing, such as the shop or search results. The ‘Product Name’ is tracked as an event label.
  • Added to Cart – Triggered when a visitor adds an item to their cart, either on a single product page or via an AJAX link on category pages. Hooks into the ‘woocommerce_add_to_cart’ action, so custom add-to cart-links should track as well. Labels: Product Name, Quantity, Category, and Attributes (if product is a variation).
  • Removed from Cart – Triggered when a visitor removes an item from their cart. Labels: Product Name.
  • Changed Cart Quantity – Triggered when a visitor increases or decreases the number of units in their cart. This event can be recorded very frequently if visitors to your site tend to have a large number of unique items in their cart. In this case, you can safely disable this event. Labels: Product Name, Quantity.
  • Viewed Cart – Triggered when a visitor views the cart. This will also track when the cart is empty.
  • Applied Coupon – Triggered when a visitor applies a coupon on either the cart or checkout. Labels: Coupon Code.
  • Removed Coupon – Triggered when a visitor removes a coupon on either the cart or checkout. Labels: Coupon Code.
  • Started Checkout – Triggered when a visitor starts the checkout process.
  • Provided Billing Email – Triggered when a visitor provides a billing email on the checkout page.
  • Selected Payment Method – Triggered when a visitor chooses a payment method at checkout.
  • Started Payment – Triggered when a customer starts the payment process. This will only track if you are a using a payment gateway that uses a “Pay” page, such as Chase Paymentech or Authorize.Net SIM.
  • Completed Purchase – Triggered when a customer’s purchase has been submitted or paid for. This will track for gateways that immediate complete payment, such as credit cards, or those that place the order for a later payment, such as a “Check Payment” order. Labels: Order ID, Order Total, Shipping Total, Total Quantity, Payment Method.
  • Wrote Review – Triggered when a visitor writes a review of a product. This is tracked before spam processing, so if you get a lot of spam, you can consider disabling this event. Labels: Product Name.
  • Commented – Triggered when a visitor writes a comment on a blog post. This is tracked before spam processing, so if you get a lot of spam, you can consider disabling this event. Labels: Post Title.
  • Viewed Account – Triggered when a customer views the ‘My Account’ page.
  • Viewed Order – Triggered when a customer views an order.
  • Updated Address – Triggered when a customer updates their billing or shipping address.
  • Changed Password – Triggered when a customer changes their password.
  • Estimated Shipping – Triggered when a visitor estimates shipping from the cart page. Labels: Country.
  • Tracked Order – Triggered when a customer submits the ‘Order Tracking’ form.
  • Cancelled Order – Triggered when a customer cancels a pending order.
  • Order Refunded – Triggered when an order has been fully refunded.
  • Reordered – Triggered when a customer reorders a previous order.

(Click to view larger images)


WooCommerce Google Analytics Pro settings 3

WooCommerce Google Analytics Pro settings 4

Checkout Funnel Settings ↑ Back to top

The Checkout Behavior Analysis will automatically be populated, so long as at least 1 event in the funnel is being tracked for your site. These events or the order cannot be configured, as they need to be static steps sent to Google for every checkout. You can track all 4 events to gain insight into how much of the checkout process customers complete, or delete an event name to stop tracking it.

WooCommerce Google Analytics Pro - Checkout Behavior

These steps can be re-named in your Google Analytics account if desired by going to Admin > eCommerce settings:

WooCommerce Google Analytics Pro - GA eCommerce Settings

You can then add custom names for the steps you have enabled on your site. Note that this does not influence what events are tracked. The tracked events are static, but you can choose any name you want for steps 1 – 4 (or less if you have disabled some events).

WooCommerce Google Analytics Pro - Rename checkout steps

To learn more about what the Checkout Behavior Analytics tracks, please read more about tracked funnels.

Authenticating with GA ↑ Back to top

Before you connect to your Google Analytics account, please be sure Universal Analytics is enabled. You can follow this guide to check that it’s enabled for the account / property you want to track with this plugin.

There are two ways to connect the plugin to your Google Analytics account: by authenticating or by manually entering your tracking ID. We strongly recommend authenticating rather than manual entering. This is more reliable and will ensure that any future feature additions will be supported without further action from you.

Authenticating

To authenticate the plugin with your Google Analytics account, click the “Authenticate” button in the plugin settings. This will begin the authentication process.

  1. Google will ask you to allow the plugin the permissions listed. Click “Allow”.
    WooCommerce Google Analytics Authenticate account
  2. This will populate the profile dropdown with your Google Analytics properties.
    WooCommerce Google Analytics Pro select property
  3. Select the correct property from the list and save your settings.
    WooCommerce Google Analytics Pro authenticated

Manual Entry

To manually enter your Tracking ID, log into your Google Analytics account.

  1. Go to “Admin” at the top and select “Property Settings” for the correct property.
    WooCommerce Google Analytics Pro Get Tracking ID
  2. Under the property settings, copy the Tracking ID listed.
    WooCommerce Google Analytics Pro: Copy Tracking ID
  3. Paste this Tracking ID into the plugin settings.
    WooCommerce Google Analytics Pro: Enter Tracking ID

Your GA Account ↑ Back to top

Once you’ve connected your Google Analytics account and set up event names, you can save the plugin settings, and eCommerce tracking data will begin to show up in your Google Analytics account within 24 hours. You can read more about enhanced eCommerce tracking here.

Once you’ve saved the plugin events settings, the plugin will add all of the events you’ve configured as events in your GA dashboard.

WooCommerce Google Analytics Pro: events tracked

You can also view event categories (such as “Product”) for a more detailed view.

WooCommerce Google Analytics Pro: event category

Want to learn more? Check out: How to Use Enhanced eCommerce in GA.

Tracking Funnels ↑ Back to top

The plugin sends all events for the Shopping Behavior Analysis and Checkout Behavior Analysis reports, so you’ll see these funnels within your GA account.

Shopping Behavior Analysis

The Shopping Behavior analysis report is automatically generated from the events the plugin sends to Google Analytics. This shows general insight into store browsing experience and where customers enter or leave your purchasing funnel. This is useful to see cart and checkout abandonment for the store.

WooCommerce Google Analytics Pro Shopping Behavior analysis

There are no settings required for the Shopping Behavior funnel; it will automatically be populated based on pageview, add to cart, checkout, and transaction events.

Checkout Behavior Analysis

The Checkout Behavior Analysis is populated with the steps the plugin has listed under its settings. This is a static funnel that is intended to be a “zoomed-in” view of the “Sessions with Check-Out” part of the Shopping Behavior funnel. The Checkout Behavior analysis gives you a more fine-grained look at where customers leave the checkout process.

While it’s most useful for sites with multi-step checkouts, this plugin will use events within this report that are relevant to any WooCommerce store, regardless of whether selling digital goods, shippable items, or other checkout processes. Please note that if you use express or off-site payment methods, especially if the customer leaves the site from the cart page, then this report may be skewed or may not have full data for your site.

WooCommerce Google Analytics Pro Checkout Behavior analysis

There are up to 4 steps tracked, and 3 of these steps will have “Checkout options” associated with them. Google Analytics allows one checkout option per event to allow you further insight into this funnel, and the ability to create segments based on these options.

Step Event Checkout Option
1 started checkout logged-in status (guest vs registered)
2 entered billing email
3 selected payment method chosen payment method
4 placed order chosen shipping method*

*only if shipping is enabled for the store / this checkout

WooCommerce Google Analytics Pro checkout options

Other Information ↑ Back to top

Basic Site Tracking ↑ Back to top

Google Analytics Pro includes basic site tracking, such as pageviews and customer sessions, so no other Google Analytics plugin is needed to get complete analytics for your store.

As such, if you’ve already used the free WooCommerce Google Analytics plugin for basic or eCommerce tracking, Google Analytics Pro will deactivate this plugin upon installation.

Monster Insights Compatibility ↑ Back to top

If you’ve already used Monster Insights (formerly Google Analytics by Yoast) for general site analytics, then WooCommerce Google Analytics Pro will respect this plugin’s settings, and will work with it for your site authentication.

If you have both plugins enabled, this plugin will defer to Monster Insights for basic site tracking, and will notify you as such.

WooCommerce Google Analytics: Monster Insights Integration

Upgrading to v1.3.0 ↑ Back to top

When upgrading to version 1.3.0 of the plugin, you’ll notice that the global javascript function has been renamed from the legacy __gaTracker to ga. This will not affect most sites, and you can adjust the plugin settings to use ga accordingly.

However, if you have custom javascript implemented for your site, you may want to ensure that these customizations are updated to use the ga global function before changing this within the plugin settings.

You should also be aware that the completed payment event is no longer necessary. Instead, completed purchase tracks purchases for all orders, both off-site and on-site gateways. If you’ve created custom analytics goals, these should be updated accordingly.

Frequently Asked Questions ↑ Back to top

Q: Does this plugin support Shopping Behavior Analysis and Checkout Behavior Analysis reports?
A: Absolutely! Check out our details on tracking funnels above for more info.


Q: Will this plugin let me get my conversion rate?
A: Both the free plugin and this pro version will give Google Analytics the data it needs to calculate your site’s conversion rate. The Pro version includes more accurate conversion rate tracking since it doesn’t require purchases to end up on the “thank you” page in order to be tracked, so orders via any payment method are tracked as conversions.

Google has more details on enhanced eCommerce reporting here.


Q: Does this support WooCommerce Bookings?
A: Yes, but please be aware of the workflows in Bookings and this plugin. Orders are tracked for completion, not the booking itself. Therefore, to ensure a booking shows as a completed purchase, please adjust the order status for a booking order, which will also change the booking, rather than changing the booking status directly. This is most relevant when requiring approval or confirmation for bookings, as changing a booking doesn’t update the related order.


Q: Does this plugin track order currency?
A: Yep! Both the free and pro Google Analytics plugins for WooCommerce will track order currency. Please note that Google Analytics does not allow displaying totals in multiple currencies; it will convert each transaction to your global currency (from your account settings) each day when a different currency code is sent.


Q: When is a purchase considered “completed”?
A: To ensure all purchases are tracked, regardless of whether the payment takes place offsite, on-site, the gateway calls “payment completed” on the order, etc., Google Analytics Pro has to rely on the order status to indicate the financial status. As such, any order that’s marked as “processing” or “completed” will have the “completed purchase” event tracked in Google Analytics.

Troubleshooting ↑ Back to top

Known Issues ↑ Back to top

  • Admin / Shop Manager users are still tracked as “Visited Site” when visiting the website to login. There is no way to prevent this, since we don’t know they’re admin users until they login.
  • Only full refunds for orders are tracked, partial refunds are not supported because Google does not accept the product identifier when sending a partial refund. We’re actively looking at ways to work around this or determine if it’s a known bug with the GA API.
  • If approving / confirming bookings via WooCommerce Bookings, please see this FAQ to ensure purchases are tracked — order statuses are what track purchases, not booking statuses.
  • Checkout Behavior Analysis reports will not use a custom set of steps. While you can name these steps whatever you’d like in your GA account, the report will consist of the pre-defined steps the plugin sends, which can be viewed on the settings page.
  • If a customer is a little click-happy and double / triple clicks an AJAX add to cart link, the “added to cart” event may be recorded multiple times. Multiple items will be added to the cart, so you may also see cart quantity changes reflected.

Other Issues ↑ Back to top

Not seeing tracking data in Google Analytics? It can take up to 24 hours for data to populate, so please keep this in mind.

If it’s been longer than 24 hours, please follow these steps to make sure everything is setup correctly before posting a support request:

  1. Check that your tracking ID is correct or that you are authenticated with Google Analytics.
  2. Double-check that your tracking ID is correct 😉
  3. View the source of your homepage to make sure the Google Analytics javascript code exists. If you’ve added this javascript manually, it needs to be removed, as it will override the data the plugin sends to Google Analytics.
  4. Please ensure your Google Analytics property is using Universal Analytics, as Google requires this for enhanced eCommerce support.
  5. If you see “No HTTP Response detected” errors, please disable product impression tracking on archive pages.
  6. If Google Analytics still isn’t working, please enable logging and submit a help request detailing what happened while following these steps and describing the issue so we can help you quickly! Add the log as an attachment is also helpful.

For Developers ↑ Back to top

Tracking Custom Events

You can track custom events by using:

wc_google_analytics_pro()->get_integration()->custom_event( $event_name, $properties );

Event name can be set as a string, while properties are passed as an array with property name => value.

You can modify this sample snippet according to your needs with the help of a developer:

if ( ! function_exists( 'my_custom_event_function' ) ) {
    function my_custom_event_function() {
        wc_google_analytics_pro()->get_integration()->custom_event( 'Event name', array( 'Property name' => 'value' ) );
    }

    add_action( 'hook_to_trigger_event_on', 'custom_event_function' );
}

The custom_event() can also be called without properties by omitting the second parameter.

Questions & Support ↑ Back to top

Have a question before you buy? Please fill out this pre-sales form.

Already purchased and need some assistance? Get in touch with a ninja via the help desk.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top