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?
Choose your own learning path

Check out google.com/analytics/learn, a new resource to help you get the most out of Google Analytics 4. The new website includes videos, articles, and guided flows, and provides links to the Google Analytics Discord, Blog, YouTube channel, and GitHub repository.

Start learning today!

Clear search
Close search
Google apps
Main menu