---
schema_version: "1"
id: f0a267921a5c48973f56436b7c54df4dcf0c0725d18d8d562aa4d49c6e0cd3e2
title: Using OmniAnalytics to Track User Engagement in Omniscripts and Flexcards
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omnianalytics_overview_std.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_overview_std.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9c012ac8691332959bdca1c5d7209c94ffef1f8240ac93b92e43691449e91d26
description: Use OmniAnalytics to track user interactions to answer questions such as which advertisements get the most responses and how many users who begin a purchasing process complete it. OmniAnalytics can track user interactions with Omniscripts and Flexcards with or without a third-party system such as Google Analytics.
products:
  - Omnistudio
release: "264"
---
# Using OmniAnalytics to Track User Engagement in Omniscripts and Flexcards

Use OmniAnalytics to track user interactions to answer questions such as which advertisements get the most responses and how many users who begin a purchasing process complete it. OmniAnalytics can track user interactions with Omniscripts and Flexcards with or without a third-party system such as Google Analytics.

Omnistudio OmniAnalytics is supported with the Omnistudio standard runtime and standard objects.

OmniAnalytics is available in Spring '24 and later releases and integrates with Google analytics 4.

## Data Flows

In OmniAnalytics, user interaction data flows from Omniscripts and Flexcards, through tracking components, and into OmniAnalytics dashboards.

![OmniScripts and Cards send data to Tracking Components, which sends data to Salesforce Reports.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/oainternalflow.png)

User interaction data from OmniAnalytics can also flow from Omniscripts and Flexcards, through tracking components, and into a third-party system such as Google Analytics.

![OmniScripts and Cards send data to Tracking Components, which sends data to Third-Party Analytics.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/oathirdpartyflow.png)

You can send the same data to OmniAnalytics dashboards, a third-party system, or both.

You can use OmniAnalytics to control the data that you send, how it’s structured, and where it goes without editing templates or writing a script.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)

Note Due to a known limitation, Flexcards added to a Tracking Group aren't automatically updated when modified. You must remove the Flexcard and add it again to the tracking group for it to work as expected.

## Types of Data Collected

OmniAnalytics collects data that helps answer questions.

- Which items are users most interested in?
- Where are we losing users in the flow?
- Are some steps too slow to load or too hard to understand?

Specifically, OmniAnalytics collects data about user activity:

- Clicks per product, offer, or promotion impression
- Clicks per UI action impression
- Percent of Omniscripts completed
- Percent of Omniscript steps completed
- Load time for Flexcards, Omniscripts, and Omniscript steps
- Viewing time for Flexcards, Omniscripts, and Omniscript steps

## Next Steps

To use OmniAnalytics, enable it and decide how to store tracked data. After enabling OmniAnalystics, configure it to track without a third-party analytics provider or with Google Analytics.

- **[Enable OmniAnalytics and Store Tracking Data](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_enable_store_tracking_data_std.htm&release=264.0.0&type=5)**  
    To enable OmniAnalytics, configure settings that determine whether OmniAnalytics is enabled and whether OmniAnalytics data is stored in OmniTrackingEvent platform events, Decision Explainer Service stores, or both.
- **[Configure Internal OmniAnalytics](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_workflow_configure_internal_std.htm&release=264.0.0&type=5)**  
    OmniAnalytics can track user interactions with Omniscripts and Flexcards without the use of a third-party analytics provider.
- **[Configure OmniAnalytics with Google Analytics](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_workflow_configure_omnianalytics_with_google_analytics_std.htm&release=264.0.0&type=5)**  
    OmniAnalytics tracks user interactions with Omniscripts and Flexcards by integrating with Google Analytics 4 (GA4) and Google Tag Manager.
- **[Create Google Analytics Trusted URLs](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_create_google_analytics_trusted_sites_std.htm&release=264.0.0&type=5)**  
    For OmniAnalytics and Google Analytics to communicate, your Salesforce org must trust the Google Analytics websites.
- **[Adding Ecommerce Data to the Example Omniscript for OmniAnalytics](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_workflow_google_data_example_omniscript_and_flexcard_std.htm&release=264.0.0&type=5)**  
    Google Tag Manager Ecommerce requires specific kinds of data. You must add this data to the Messaging Framework Omniscript properties. When the Omniscript runs, it sends this data to Google Analytics.
- **[Setting Up Third-Party Tracking and Event Types](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_workflow_configure_external_std.htm&release=264.0.0&type=5)**  
    An External Tracking Definition specifies a third-party analytics account and tag manager that the OmniAnalytics tracking data is sent to. External Tracking Event Types specify data formats for specific events.