Loading
Connect in real time with the Trailblazer Community in Slack Open BetaRead More
Create a Lightning App Page with a Tracking Manager (Managed Package)

Create a Lightning App Page with a Tracking Manager (Managed Package)

For the managed package runtime, the Vlocity Tracking Manager is a Lightning Web Component that must be included in any Lightning page that includes components tracked with OmniAnalytics. It listens for user interaction events and sends data for those events to VlocityTrackingEntry__c objects, VlocityTrackingEvent__e Platform Events, or both.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

If the Vlocity Tracking Group to which the components belong is configured to communicate with an external tag manager, the Vlocity Tracking Manager sends event data to that tag manager.

Note
Note

To be tracked, an Omniscript must be in the same page context as a Vlocity Tracking Manager component. An Omniscript called from a Flexcard cannot be tracked if the current page is replaced or destroyed.

If you are following the workflow example, in this task you add the example Omniscript and Flexcard to a Lightning App Page.

  1. In Setup, in the Quick Find box, type lightning app, then click Lightning App Builder.
  2. Click New.
  3. Select App Page, then click Next.
  4. In the Label field, type Analytics Test Page, then click Next.
  5. Click One Region, then click Finish. The new page opens in Lightning App Builder.
  6. Drag the Documentation/OmniAnalytics/English custom component onto the page canvas.
  7. Drag the DocumentationTestCard custom component onto the page canvas below the first component.
  8. Drag the Vlocity Tracking Manager custom component onto the page canvas below the others. This component has no UI.
  9. Click Save, then Activate.
  10. (Optional) Click Lightning Experience, select an existing app, then click Add page to app.
  11. Click Save, then click Back to exit Lightning App Builder.
  12. Click the App Launcher and go to the Analytics Test Page.
  13. Verify that the Analytics Test Page looks like this:
    The Analytics Test Page contains the sample OmniScript and Card. The first step of the sample OmniScript is Select Device, which has a Choose a device field and a Next button. Steps listed are Select Device, View Quote, Cart Details, Review Cart, Shipping Address, Provide Payment, and Order Receipt. Select Device is highlighted. The sample Card displays a user Id and Name and has NavigateAction and NavigateActionNewWindow buttons.

What’s next: After you have created the Lightning App Page, the next task is to Interact with the Example Omniscript and Card (Managed Package) to generate tracking data.

 
Loading
Salesforce Help | Article