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?
true
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!

Search
Clear search
Close search
Google apps
Main menu
14892500176646847787
true
Search Help Center
true
true
true
true
true
69256
false
false