Adding Google Analytics Enhanced Ecommerce integration to Drupal Commerce
You'll want to enable the measurement of user interactions with products on your e-commerce store across the user's shopping experience, including the views of product details when viewing a commerce product entity, the additions and removals of products from the shopping cart, the customer's checkout behavior, and their final purchases. We can do this using Google Analytics as follows:
- Firstly, you need to have a Google Tag Manager (GTM) account: https://tagmanager.google.com.
- Then, Google Analytics must be deployed with GTM: https://support.google.com/tagmanager/answer/6107124.
- On your Google Analytics account, you must enable Ecommerce and Enhanced Ecommerce Reporting: https://support.google.com/analytics/answer/6032539.
- Install the Commerce Google Tag Manager module as...