Go to the Destinations overview page and click the Add destination button. Select Vitally and click Continue. You can then authenticate Hightouch to by entering the following fields into Hightouch:
Region: Either EU or US.
Analytics API Token: This is required for syncing analytics objects and events.
REST API Token: This is required for the REST endpoints.
Follow these instructions to generate tokens.
Log into your Vitally account, click the wheel icon on the bottom sidebar.
Under Data Management, select the Integrations option.
For the Analytics API Token, select the Vitally Analytics API card. Otherwise, skip to step 6 for the REST API Token.
Toggle on the integration.
Click the Integrate via HTTPS API tab and copy the API KEY. This is the Analytics API Token you need to enter in Hightouch.
For the REST API Token, select the Vitally REST API card.
Toggle on the integration and click to generate the API Key.
Copy the Basic Auth Header once it's generated to use in Hightouch. This is the REST API Token you need to enter in Hightouch.
Once you've entered the relevant token or tokens, click Continue and enter a descriptive name for your destination to complete setup.
Once you've set up your Vitally destination, have a model to pull data from, and have a clear idea of the data you want to sync, you can set up your sync. Go to the Syncs overview page and click the Add sync button to begin. Then, select the relevant model and the Vitally destination you want to sync to.
To match rows from your model to objects in Vitally, you need to select the model column that contains values that match the External ID field in Vitally. When syncing users, you can also match on Email.
Hightouch lets you sync object fields via field mapping.
You can map data from any of your model columns to any of an object's default fields.
Ensure the data type of your model column matches the data type of field you want to sync to in Vitally.
For example, a Vitally text field expects a model column with the stringdata type.
When using Upsert or Update mode to sync users, if you match on Email,
you need to map both the External IDand either Account IDs or Organization IDs.
Otherwise, Hightouch displays a Required field error and a Must specify at least one of: accountIds or organizationIDs error.
If you match users on External ID, you only need to provide either Account IDs or Organization IDs.
Otherwise, Hightouch displays a Must specify at least one of: accountIds or organizationIDs error.
Vitally accounts, organizations, and users objects contain an editable traits attribute to store custom key/value pairs.
This is useful for storing information like a customer's plan, number of licenses, name, etc.
To properly sync traits to Vitally, you need to format the traits field as an object data type rather than a string.
You can create an object of all the fields you want to update, and then map them to traits.
An example traits attribute for an organization object could look like this:
You can use template mapping to create objects like this in your sync configuration.
In the following example screenshot, the template uses this Liquid function
You can sync columns from your model to existing traits in Vitally and/or create new ones by adding them directly to the traits object in your Hightouch sync.
Hightouch lets you sync analytics object fields via field mapping.
You can map data from any of your model columns to the default object fields.
Ensure your model columns data types match the data types of the fields you want to sync to.
Hightouch allows you to map traits for the analytics objects. Any mappings from this section will be synced as additional attributes in the traits parameter.
Providing an event name is required to send an event to the Vitally's API. You can either provide a static value or select to use a column from your model. Hightouch syncs the static or column value as the event parameter the API requires.
You can optionally select a column that contains timestamps of when events occurred. If this field is empty, Hightouch uses the time the event arrives at the server. Hightouch syncs the timestamp as the timestamp parameter the API requires.
Field mapping is where you select which event parameters you want to send to the Vitally's API.
The API requires you to map at least one of the following fields in order to save your sync.
Account ID
Organization ID
User ID
You can also include data to sync as custom event fields in Vitally.
You may receive an error like this in the Hightouch UI if you don't include all necessary values in your sync.
Consult the field mapping section of your relevant sync type to learn more.
Hightouch provides complete visibility into the API calls made during each of your sync runs. We recommend reading our article on debugging tips and tricks to learn more.