---
schema_version: "1"
id: cf9f8a916d601d09ec0d93c7dff2dd779f252de497a6568ddc21891c1825fdb9
title: Create a Tracking Group and Add Components to Track
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omnianalytics_create_tracking_group_and_components_std.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_create_tracking_group_and_components_std.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 831eb16f714487abec46f32785794a901a33371be68580fa2a7b032c03335503
description: To specify a group of components that you want to track together, create a Tracking Group and add Omniscript and Flexcard components to it.
products:
  - Omnistudio
release: "264"
---
# Create a Tracking Group and Add Components to Track

To specify a group of components that you want to track together, create a Tracking Group and add Omniscript and Flexcard components to it.

Make sure your Omniscripts and Flexcards meet these criteria:

- All Omniscript Step components have Step Label values.
- The Omniscript Setup and each Step component have all Messaging Framework boxes checked: Window postMessage, Pub/Sub, and Session Storage.
- The Omniscript or Flexcard is active.
- If you originally downloaded the Omniscript or Flexcard from an Omnistudio for Vlocity org, you’ve clicked the dropdown in the designer next to Edit or Help and selected **Deploy Standard Runtime Compatible LWC**.

1. From Setup, in the Quick Find box, enter omni.
2. Expand **OmniAnalytics** and click **Tracking Groups**.
3. Click **New**.
4. For the name, enter AnalyticsTest.
5. From the Tracking Group Type dropdown list, select **Internal**.
    
    Internal specifies that you aren't using a third-party Analytics system. External specifies that you’re using a third-party system such as Google Analytics.
    
    ![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 A specific Omniscript or Flexcard can belong to two Tracking Groups if one is Internal and the other is External.
6. Make sure **Is Active** is on for the Tracking Group.
    
    ![In the New Vlocity Tracking Group window, the Name is AnalyticsTest, the Tracking Group Type is Internal, and the Active box is checked. All other fields are blank.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/group.png)
7. Save your changes.
    
    The new tracking group is added to the list.
8. Click **AnalyticsTest**.
    
    The tracking group page opens.
9. Click **Add Component**.
    
    The Add Component window opens.
10. Select the Flexcard you want to add from the Available list and move it to the Selected list.
    
    ![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.
11. Collapse the **Flexcard** list and expand the **Omniscript** list.
12. Select the Omniscript you want to add from the Available list and move it to the Selected list.
    
    ![In the Add Component window, an Omniscript and a Flexcard are selected.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/addcomponent.png)
13. Save your changes.
    
    You return to the Tracking Groups list.
14. Click **AnalyticsTest** again.
    
    The Tracking Group looks like this:
    
    ![On the Vlocity Tracking Group page for AnalyticsTest, rows for one Omniscript and one Flexcard are listed.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/addedcomponents.png)
    
    ![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 If you change a Tracking Group, you must refresh the browser.

After you create the tracking group, [Add Tracked Components to a Lightning App Page](https://help.salesforce.com/s/articleView?id=xcloud.os_omnianalytics_edit_lightning_app_page_std.htm&release=264.0.0&type=5 "Users interact with Omniscripts and Flexcards via Lightning App Pages. However, instead of directly adding Omniscripts and Flexcards to pages, you add wrapper components that make the Omniscripts and Flexcards available to OmniAnalytics.").