---
schema_version: "1"
id: 3665f218f8158d2caf289de3f15ed0f1abab781cf74fe1b15dd7c78b9cabe825
title: Enable OmniAnalytics and Store Tracking Data (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_enable_omnianalytics_and_store_tracking_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_enable_omnianalytics_and_store_tracking_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a42fb6528dd363a8ff067fcf2edaaf317cbf25e97165f9fa84fe8386fbb1b970
description: For the managed package runtime, to enable OmniAnalytics, you must first allocate space in the VlocityMetadata partition of the Platform Cache. Then you must configure custom settings that determine whether OmniAnalytics is enabled and whether OmniAnalytics data is stored in VlocityTrackingEntry__c object records, VlocityTrackingEvent__e platform events, or both.
products:
  - Omnistudio
release: "264"
---
# Enable OmniAnalytics and Store Tracking Data (Managed Package)

For the managed package runtime, to enable OmniAnalytics, you must first allocate space in the VlocityMetadata partition of the Platform Cache. Then you must configure custom settings that determine whether OmniAnalytics is enabled and whether OmniAnalytics data is stored in VlocityTrackingEntry\_\_c object records, VlocityTrackingEvent\_\_e platform events, or both.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

Before You Begin

OmniAnalytics metadata is cached in the VlocityMetadata partition of the Platform Cache. For OmniAnalytics tracking to work, this partition must have space allocated. OmniAnalytics metadata includes data for the following objects:Allocate Space in the Platform Cache Partitions

- VlocityTrackingGroup\_\_c
- VlocityTrackingComponent\_\_c
- VlocityWebTrackingConfiguration\_\_c
- VlocityWebTrackingEventType\_\_c

1. Go to Setup.
    
    - In Lightning Experience, click the gear icon and select **Setup** from the menu.
    - In Salesforce Classic, click the user menu and select **Setup** from the menu.
2. In the Quick Find field, enter Custom Settings.
3. Click **Custom Settings**.
4. Click the letter **G** in the index across the top.
    
    ![The Custom Settings page lists settings with names that begin with G.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/customsettingsg.png)
5. To the left of **General Settings**, click **Manage**.
    
    ![The Custom Settings page lists General Settings.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/generalsettings.png)
6. For each setting, click **New**, enter a **Name** and a **Value**, then click **Save**.
    
    To follow the examples in the workflow, add all these settings with values of true except OmniAnalyticsTrackAsEvent.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d353579e194">
                  <p style="margin-bottom:0;">Name</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d353579e200">
                  <p style="margin-bottom:0;">Values</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d353579e206">
                  <p style="margin-bottom:0;">Description</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e194 ">
                  <p style="margin-bottom:0;">OmniAnalyticsEnabled</p>
                </td>

                <td data-label="Values" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e200 ">
                  <p style="margin-bottom:0;">true or false, default is false</p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e206 ">
                  <p style="margin-bottom:0;">If true, enables OmniAnalytics and tracks data for Omniscripts and Flexcards.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e194 ">
                  <p style="margin-bottom:0;">OmniAnalyticsTrackAsObject</p>
                </td>

                <td data-label="Values" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e200 ">
                  <p style="margin-bottom:0;">true or false, default is false</p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e206 ">
                  <p style="margin-bottom:0;">If true, saves tracking data in VlocityTrackingEntry__c object records.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e194 ">
                  <p style="margin-bottom:0;">OmniAnalyticsTrackAsEvent</p>
                </td>

                <td data-label="Values" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e200 ">
                  <p style="margin-bottom:0;">true or false, default is false</p>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d353579e206 ">
                  <p>If true, publishes tracking data in VlocityTrackingEvent__e platform event records.</p>
                  <p style="margin-bottom:0;">VlocityTrackingEntry__c and VlocityTrackingEvent__e records have different fields. However, they have the same JSON structures in their Data fields. See <a href="https://help.salesforce.com/s/articleView?id=xcloud.os_view_the_vlocity_tracking_entry_records.htm&amp;release=264.0.0&amp;type=5" title="For the managed package runtime, you can view tracking data in Vlocity Tracking Entry records by creating a custom tab, filtering the list of records, then copying the Data field contents into a JSON formatter.">View the Vlocity Tracking Entry Records (Managed Package)</a>.</p>
                </td>

              </tr>
            </tbody>
          </table>
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
    
    Note
    
    If the Vlocity Tracking Group Type is set to Internal, OmniAnalyticsTrackAsObject and OmniAnalyticsTrackAsEvent cannot both be false. If the Vlocity Tracking Group Type is set to Web and you don't need to save data to Salesforce, both can be false. See [Create a Tracking Group and Add Components to Track (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_tracking_group_and_add_components_to_track.htm&release=264.0.0&type=5 "For the managed package runtime, to specify a group of components to be tracked together, you create a Vlocity Tracking Group and add Omniscript and Flexcard components to it.").