Problem Description
A Playbook is used to add and remove accounts from a Segment in Vitally but no straight forward way to track when a Segment was added or removed. Spoiler alert, you'll need to do this via a playbook and a custom trait. Read this article to find out how to configure this.
Step-by-Step Solutions
1. Create a custom Datetime Trait
To create a custom datetime trait
Navigate to your account settings
Create traits if they do not already exist. Set their data type to "Datetime" for proper tracking
2. Add a Step to Update Custom Traits
Open the Playbook that handles the Segment activity
After the "Add Account to a Segment" step, add a new step:
Select "Update an Account Trait" as the action.
Set the datetime custom trait start date to the current timestamp
Repeat the same for datetime trait end date in the corresponding step where accounts are removed from the segment (typically as the last step in the Playbook).
3. Review and Adjust
If the timestamps are not updating as expected:
Check the playbook steps for errors in configuration.
Confirm that Vitally has permission to update the traits.
Additional Tips
Maintain Consistent Traits: Ensure all accounts have the same trait structure for seamless updates.
Automate Other Playbook Steps: Use similar methods to record timestamps for other account activities if needed.
FAQ
How does the “Update an Account Trait” step work?
This step allows you to update specific account traits (e.g., PoC start or end date) with a custom value, such as the current timestamp.
Can I track multiple timestamps for the same segment?
Yes, create separate traits for each activity (e.g., PoC Added Timestamp
, PoC Removed Timestamp
) if you need granular tracking.
What if timestamps don’t update properly?
Ensure the Playbook step is configured to update the correct trait and that the Playbook triggers at the appropriate time.
Can I use this method for other activities?
Absolutely. This approach can be adapted to track timestamps for any activity managed through Playbooks.