Skip to content

Update: Google Analytics - Send feature flag analytics to Google Analytics documentation #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion website/docs/integrations/google-analytics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ For Text feature flags with lengthy values (e.g., JSON), send the `variationId`

4. **Deploy your application** and wait for feature flag evaluations to occur. This process might take 1-2 days for the `experience_impression` events to populate in Google Analytics.

5. **Define an audience** in Google Analytics using the `exp_variant_string` parameter with the same values that you using in your events (e.g. `configcat-isMyAwesomeFeatureEnabled-true`) it by following the guide [here](https://support.google.com/analytics/answer/9267572). This allows you to leverage feature flag evaluation events effectively.
5. **Define an audience** in Google Analytics using the `exp_variant_string` parameter with the same values you used in your events (e.g. `configcat-isMyAwesomeFeatureEnabled-true`) by following the guide [here](https://support.google.com/analytics/answer/9267572). This allows you to leverage feature flag evaluation events effectively.

### Example audiences reports

<img src="/docs/assets/googleanalytics/audiences.png" alt="Google Analytics Audience report" decoding="async" loading="lazy"/>

### Useful resources

- [A/B Testing with ConfigCat and Google Analytics - Blog post](https://configcat.com/blog/2024/09/20/ab-testing-configcat-google-analytics/)
- [A/B Testing with ConfigCat and Google Analytics - Sample app](https://github.com/configcat-labs/configcat-google-analytics-integration-sample)
- [Creating Audiences in Google Analytics - Google documentation](https://support.google.com/analytics/answer/9267572)