Tracking Plan Libraries
Tracking Plan Libraries make it easy to scale Tracking Plan creation within your workspace. You can create libraries for track events or track event properties. Editing Tracking Plan Libraries is identical to editing Tracking Plans.
Note: Segment does support advanced JSON schema implementations and identify/group trait libraries.
Once created, you can import event or property Libraries into a Tracking Plan using a simple wizard flow.
Create a Tracking Plan Library
To create a new Library:
- In the left navigation, click Protocols
- Click Libraries in the top navigation bar
- Click New Library and follow the steps to create an event or property library
Tracking Plan Event Libraries
Tracking Plan Event Libraries support Track events and associated properties. Event Libraries are helpful when you want to track a group of events consistently across tracking plans. For example, if you are an eCommerce company with more than one application, you may need to track eCommerce Spec events consistently across those sources. Instead of needing to re-create the eCommerce spec across all tracking plans, create a library and import the events to each Tracking Plan.
Tracking Plan Property Libraries
Tracking Plan property Libraries support Track event property groups. Property Libraries are helpful when you have more than one event in a Tracking Plan that share a common set of properties. For example, if you want to consistently include
cart_id and a
products array of objects in your checkout flow events, you can create a Library with these properties including descriptions, data types and conditional filters.
Import Libraries into a Tracking Plan
You can import event and property libraries into a Tracking Plan. Enter the Draft mode for a Tracking Plan and click the Import from Event or Property Library dropdown. A wizard will appear allowing you to either add the events to a tracking plan, or add properties to selected events already in the tracking plan. After adding your events or properties, remember to merge your changes!
Enable Event Library syncing
Property Library syncing is not supported.
When you import events from an Event Library, you can enable syncing to ensure that changes made to the Library pass down to all synced Tracking plans.Syncing is important when you want to make sure all Tracking Plans define events consistently. For example, it’s best practice to create separate tracking plans for mobile and web sources as these two sources share some but not all events. Library syncing is the best way to ensure that the shared events are consistently tracked across Tracking Plans, even as you make changes to the Library.
To enable syncing, select the desired Library from the Tracking Plan import flow, and toggle the syncing option. This selects all events in the Library for import. Partial syncs are not supported as it would make it impossible to ensure complete compliance with the Library.
Syncing a Library makes events and properties un-editable, and bypasses the Tracking Plan merge step. You can add properties to synced events, but cannot remove those synced events unless you also remove the Library sync. To unsync a library, click View Synced Libraries from the Tracking Plan and click the overflow menu to unsync the Library.
All changes made to a synced library pass through to the Tracking Plans and may impact data deliverability
This page was last modified: 25 Jun 2021
Questions? Problems? Need more info? Contact us, and we can help!