Connect Google Analytics to Your Consumer App
How to connect an analytics tracker to a Consumer App so you can collect user analytics from it.
Analytics options
The Consumer App supports Google Analytics 4 as a native out-of-the-box analytics integration.
If you want to send Consumer App events to another analytics tool, you can use custom event forwarding from the parent page where the app is embedded. This option requires web development support.
Connecting Google Analytics
Adding an Analytics tracker is a paid feature.
To unlock this feature, please contact your Account Manager.
You can easily add your Google Analytics tracking code to any of your Consumer Apps to track visitor behavior and demographics. The Consumer App and Google Analytics integration lets you track when a user started the session, get recommendations, add products to the product cart, and other events.
To set up the integration:
On your Google Analytics home page, go to Admin settings and select Data Streams.
Click the Data Stream you want to connect to your Consumer App (you might have more than one).
Copy the value under Measurement ID (you can do this by clicking the Copy icon).

In your B2B SaaS account, go to Consumer Apps and open the app you want to integrate with Google Analytics.
Go to the Advanced tab, scroll down to the Google Analytics tracker tab, and paste the previously copied measurement ID into the tracker ID field.

Save the changes.
Testing integration
To test the integration, we suggest using Google Tag Assistant. It is the easiest and most friendly tool for non-technical users.
Copy the link to your Consumer App.
Open Google Tag Assistant: https://tagassistant.google.com/.
Click
Add domain.
Paste the copied link to your Consumer App and click Connect.

Select your measurement ID on the top of the Tag Assistant page.

Switch to your skin Consumer App and complete the user journey (e.g., capture the photo, get recommendations, and add products to the cart).
Switch back to the Tag Assistant Tab. You should see the events from the Consumer App if everything was set correctly.

Google Analytics Reference
Use these guides depending on what you want to track or customize:
Google Analytics Events Reference lists the Consumer App events and parameters you can use to build funnels and reports in GA4.
Google Analytics Events Reference (SkinGPT) lists the events available for SkinGPT-powered experiences.
Important to Note
Consumer App sends events to analytics tools only if the user has provided consent inside the Consumer App.
Add custom UTM-parameters to Your Consumer App
Forward Parent Page UTM Parameters to the Consumer App explains how to pass campaign UTM parameters from the parent page URL into the embedded app iframe.
Other options to track
Send Consumer App Analytics Events to Third-Party Analytics explains how to receive Consumer App analytics events on the parent page and forward them to Google Analytics or another third-party analytics tool.
Tracked Events
You can use tracked events to build a conversion funnel and understand how your clients interact with the Consumer App. Check the full list of events in Google Analytics Events Reference.
If you embed the app into a landing page or Shopify page, you can also keep campaign attribution consistent by forwarding parent page UTM parameters into the app iframe. See Forward Parent Page UTM Parameters to the Consumer App.
FAQ
I attached the Google Analytics, but I don't see any events incoming
It normally takes up to 1 day for Google Analytics to start gathering the events and metrics for the new stream. It might take longer if your Consumer App is not actively used (<10 users per day).
In case you don't see the events for a longer period, please, reach out to your Account Manager.
Google is moving away from 3rd party cookies. How will it Returning User Experience in the Consumer App?
Consumer App uses a Returning user experiencefeature to show differences in metrics, and cookies are used to re-identify the same user by device-browser finger print. Haut.AI does not use 3rd party cookies for this or for any other services, so Google moving away from 3rd party cookies does not affect the functionality or accuracy of user identification in the Consumer App.
Can you integrate other analytics tools? GludoIO / Triple / Facebook Pixel
Google Analytics is supported as a native out-of-the-box integration. Other analytics tools can receive Consumer App events through custom event forwarding from the parent page where the app is embedded. This requires web development support. See Send Consumer App Analytics Events to Third-Party Analytics.
Not a Haut.AI client yet?
Last updated