---
schema_version: "1"
id: 49643491e945381b2ecfece414c186a0771219da8e70fc86ff448f061fc56122
title: Track Custom Data on a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_track_custom_data_on_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_track_custom_data_on_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 73abbfc9288d844c07aff3991f12cc843c7d48c10468c3e565aef7a9051b94aa
description: For the managed package runtime, track custom data to publish with OmniAnalytics. The tracked information is sent from the Flexcard element to the Vlocity Tracking Service which is then published by OmniAnalytics.
products:
  - Omnistudio
release: "264"
---
# Track Custom Data on a Flexcard (Managed Package)

For the managed package runtime, track custom data to publish with OmniAnalytics. The tracked information is sent from the Flexcard element to the Vlocity Tracking Service which is then published by OmniAnalytics.

Before you begin:

![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).

1. Enable the [Tracking Service in Omnistudio for Managed Packages (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_vlocity_tracking_service.htm&release=264.0.0&type=5 "For the managed package runtime, the Tracking Service in Omnistudio for Managed Packages is an event-tracking service that captures details of actions that users perform. You can use the service to track any type of event. For example, you can track the time it takes to complete the steps in an Omniscript to identify process improvements.") in Custom Settings.
2. Enable [Vlocity OmniAnalytics](https://help.salesforce.com/s/articleView?id=xcloud.os_vlocity_omnianalytics_overview.htm&release=264.0.0&type=5 "For the managed package runtime, using OmniAnalytics, you can 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 LWC Omniscripts and Flexcards with or without a third-party system such as Google Analytics.").
3. Check **Enable Tracking** on a Flexcard element.

Configure your Business Event, Business Category, and Custom Fields on a Flexcard in the Flexcard Designer. All Flexcard events support Business Event, Business Category, and Custom Fields. For Card Load and Card Unload events, all merge fields, except record merge fields are selectable.

Child Flexcard events must be specified in the Child Flexcard.

1. In the Flexcard Designer, click **Setup** to open the Setup panel.
2. To select a business event to track, click into the **Business Event** field, and select from the list of merge fields if your data source pulls in the business event. Otherwise, enter the name of the event, such as view\_cart, or a session variable, such as {Session.cart}.
3. To select a business category for the event, click into the **Business Category** field, and select from the list of merge fields if your data source pulls in the business category. Otherwise, enter the name of a category, such as Ecommerce, or a session variable, such as {Session.ecommerce}.
4. To append custom fields to the tracking event sent to the Vlocity Tracking Entry object, from the **Custom Fields** section perform these tasks:
    
    1. Click into the **Key** field and select from the list of fields from the TrackingEntry object. For example, select ns\_\_AccountId, where `ns` represents your org's namespace. Or enter a key.
    2. Click into the **Value** field and select the associated merge field, such as {AccountId}. Or enter a value.
    3. To enable logging to the custom fields you added to the VlocityTrackingEntry\_\_c object, you must add a trigger for each field.