Set up Ecommerce Tracking

Add Ecommerce Tracking to your website or app.

To see Ecommerce data in Google Analytics, you need to:

  • Enable Ecommerce in your reports, and
  • Add code to your site or app to collect ecommerce data.
In this article:

Enable Ecommerce in your reports

You need to enable Ecommerce reporting in the view in which you want to see the data.

  1. Sign in to your Google Analytics account.
  2. Navigate to the desired account, property and view.
  3. In the VIEW column, select Ecommerce Settings.
  4. Click the toggle ON.
  5. Optional: Turn ON Enhanced Ecommerce.
  6. Click Submit.

Tracking setup with Google Tag Manager

If you use Google Tag Manager to manage your tracking, read the Ecommerce Tracking tag setup guide.

Tracking setup (web)

If you have not already added basic page tracking, do this first.

If you use a third-party shopping cart, or track transactions across separate domains, you'll need to set up cross domain tracking. If your shopping cart software is on the same domain as your ecommerce site, you don't need to implement cross domain tracking.

To collect ecommerce data from a website, you'll need to add JavaScript to your site that sends Google Analytics the transaction and item data. Refer to the Google Analytics Ecommerce Tracking documentation on Google Developers. If you are using Enhanced Ecommerce, refer to the Enhanced Ecommerce documentation.

Tracking setup (app)

To collect ecommerce data from a mobile app, use one of the Google Analytics SDKs.

To collect ecommerce data from an Internet connected device (a point-of-sale device, for example, but not a website or mobile app), refer to Ecommerce Tracking or Enhanced Ecommerce Tracking in the Measurement Protocol developer guide.

Related resources

google-developers-svg

gtm-logo-sm-svg

  • Ecommerce Tracking