This article is about Universal Analytics properties, which will stop processing data on July 1, 2023 (July 1, 2024 for Analytics 360 properties). If you haven't already, start using a Google Analytics 4 property.

Tag your property with the ec.js plugin

The ec.js plugin is used in conjunction with analytics.js deployments only. For newer gtag.js deployments, enhanced ecommerce capability is built in and does not require the ec.js plugin.

Do not use the ec.js plugin alongside the older Ecommerce plugin.

The ec.js plugin for analytics.js lets you track the whole arc of your users’ shopping experience, including:

  • Viewing product impressions
  • Clicking product links
  • Viewing product details
  • Adding products to, removing products from shopping carts
  • Initiating the checkout process
  • Completing transactions
  • Receiving refunds

Once you've implemented the analytics.js snippet, you can then implement the ec.js plugin.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Clear search
Close search
Google apps
Main menu
Search Help Center