What events does AI Commerce support in GA4?
Learn how AI Commerce supports various events in GA4 analytics and how you can leverage them in your business.
AI Commerce supports multiple event tracking in Google Analytics 4 (GA4) using the generate_lead and conversion event identifiers. These events allow for precise event collection such as phone calls or offers, and using Google Tag Manager is not recommended as it could cause unnecessary overlap with native trackers. Partners can add new events to the interface as needed. Events are tracked using two data sources:
- Google Analytics gtag tracker in the browser. Only works if the browser does not block tracking with plugins etc. A common way to measure results.
- With the Google measurement protocol API between servers. Works legibly regardless of the user's browser and settings, because the tracking takes place directly between the AICC server and the Google server over an encrypted connection. You can read more about the topic in our own article.
For example, we send the basic information below for events
- Event : Indicates the type of event, for example generate_lead and conversion , which include a refinement of the event such as “offer” or “form fill”.
- TransactionId and clientId : Ensures deduplication of transactions if they come through both the JavaScript tracker and the Measurement Protocol API.
- Cart Value : Sent with quotes, cart transactions, and orders, improving lead value analysis.
- When a purchase is made, information about the products ordered and the total value of the order are sent. We use identifiers that deduplicate transactions from different data sources.
Example of adding a new event tracker in the user interface for integration partners:
gtag('event', 'conversion', {
'send_to': adsTrackingId + '/' + adsQuoteConversionId,
'value': value,
'currency': 'EUR',
'transaction_id': quoteId.toString()
})
Learn more https://developers.google.com/analytics/devguides/collection/ga4
Supported GA4 events at the time of writing
Below is a list of all events supported by AI Commerce and brief descriptions of their purpose:
- page_view – Records page load
- user_engagement – Tracks user engagement on the site
- session_start – Starts recording a new session
- first_visit – Marks the user's first visit
- scroll – Tracks page scrolling
- search – Logs internal site searches
- add_to_cart – Records adding a product to the cart
- begin_checkout – Records the start of the payment process
- click – Detects clicks on links or buttons
- generate_lead – Track a lead, such as a phone call or a request for a quote
- add_payment_info – Records the addition of payment information
- exception – Logs error messages and exceptions
- submit_form – Tracks form submissions
- file_download – Log file downloads
- add_shipping_info – Indicates the entry of shipping information
- account_update – Logs user account updates
- add_to_wishlist – Saves adding a product to the wishlist
- contact_form – Track contact form submissions
- purchase – Marks the completion of a purchase transaction
- filter_applied – Records the application of a filter on the site
- register_submit – Tracks the submission of the registration form
- login – Records user login
- apply_coupon – Indicates the addition of a discount code
- country_change – Tracks changes to the site's country setting
- forgot_password – Stores password reset requests
- builderio-form-submit – Track Builder.io form submissions