Last Updated: 2024-03-07
Stellar can integrate with your existing analytics tools to provide a more comprehensive view of your experiment performance. This guide explains how our analytics integrations work and how to set them up.
When you enable GA4 integration in Stellar, we automatically send experiment and conversion events to your Google Analytics 4 property. This allows you to:
To use the GA4 integration, you must:
gtag function available in the global scopeStellar sends the following events to GA4:
When a user views an experiment variant, Stellar sends a stellar_experiment_view event with the following parameters:
{
"event": "stellar_experiment_view",
"experiment_id": 12345,
"experiment_name": "Homepage Hero Test",
"variant_id": 6789,
"variant_name": "Variant A"
}When a user triggers a conversion that has GA4 integration enabled, Stellar sends a stellar_experiment_conversion event with the following parameters:
{
"event": "stellar_experiment_conversion",
"experiment_id": 12345,
"experiment_name": "Homepage Hero Test",
"variant_id": 6789,
"variant_name": "Variant A",
"conversion_id": 101112,
"conversion_name": "Add to Cart"
}Once integration is set up, you can:
If you're not seeing experiment data in GA4:
gtag function is available in the global scope