---
schema_version: "1"
id: 7eabd170826da57c1bbb48978a0683da41cee3fd191885582cb746e5de2e513b
title: Edit the Tracking Manager Component (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_edit_the_tracking_manager_component.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_edit_the_tracking_manager_component.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e42139ae96751f95f2f0d75e94e9c66c7a77ceee507f5933de923d0a0ba5fb1a
description: For the managed package runtime, to use a third-party analytics vendor, the first step is to clone the Visualforce page for the Tracking Manager and add third-party code to it.
products:
  - Omnistudio
release: "264"
---
# Edit the Tracking Manager Component (Managed Package)

For the managed package runtime, to use a third-party analytics vendor, the first step is to clone the Visualforce page for the Tracking Manager and add third-party code to it.

![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. Go to Setup.
2. In the **Quick Find** box, type visual, then click **Visualforce Pages**.
3. Find the Visualforce page for the Tracking Manager that you want to enable for third-party analytics tracking and click its name.
    
    For example, you can select the VlocityTrackingManager page, **Clone** it, then select the name of the clone. The name of the clone must include `trackingmanager` (case insensitive) as a substring.
4. Click **Edit** to open the code for the page.
5. Paste the vendor's `<script>` code immediately above the `<script>` element already in the page.
    
    For example, if the page initially looks like this:
    
    ```
    <apex:page sidebar="false" showHeader="false" standardStylesheets="false" showQuickActionVfHeader="false"
         showChat="false">
         <script>
           //Custom Logger class to manage logs
    ```
    
    And the vendor's `<script>` code looks like this:
    
    ```
    <script>(function(c,a) ... {batch_requests: true})</script>
    ```
    
    Then the page with the vendor's `<script>` code should look like this:
    
    ```
    <apex:page sidebar="false" showHeader="false" standardStylesheets="false" showQuickActionVfHeader="false"
         showChat="false">
         <script>(function(c,a) ... {batch_requests: true})</script>
         <script>
           //Custom Logger class to manage logs
    ```
6. Find the handleOtherAnalytics function. It should look like this:
    
    ```
    function handleOtherAnalytics(eventData){
         //Support for new analytics vendor
         //Can be implemented by customer
    }
    ```
7. Add code for processing the third-party analytics events.
    
    For example, the following code is for MixPanel Analytics:
    
    ```
    function handleOtherAnalytics(eventData){
         logger.log("MixPanel Analytics Payload:");
         logger.log(eventData);
         mixpanel.track(eventData.event, {...eventData.payload});
    }
    ```
8. Click **Save**.

What’s next: [Configure OmniAnalytics to Use the Tracking Manager (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configure_omnianalytics_to_use_the_tracking_manager.htm&release=264.0.0&type=5 "For the managed package runtime, after you create a Tracking Manager for the third-party analytics vendor, you must reference it from a Tracking Configuration and Tracking Group.").