@graphcommerce/googleanalytics
v9.0.1
Published
This package makes it easy to add Google Analytics GA4 to your GraphCommerce webshop.
Downloads
4,404
Readme
@graphcommerce/googleanalytics (Config)
This package makes it easy to add Google Analytics GA4 to your GraphCommerce webshop.
Besides the GA4 integration it also tracks the following events:
- add_payment_info
- purchase
- add_shipping_info
- add_to_cart (also triggered when updating quantity)
- begin_checkout
- select_item
- view_item_list
- view_item
- view_cart
- remove_from_cart
Configuration
Configure the following (configuration values) in your graphcommerce.config.js
Make sure you also configure the 'Page changes based on browser history events.' configuration in Google Analytics, see docs.