Tealium Integration to Fire Events
Request URL
https://development-data.strala.io/v1/journey/events
API Request Body Example:
{ "event_type":"touchpoint_interaction" "organization_uuid":"7e1a7bcd-6fc8-42ad-b17f-59067fc1a795" "who_uuid":"fb2b9154-4a27-4387-ae71-5cd8d9a9b1df" "touchpoint_id":"124567" "event_date_time":"2019-02-10T00":"00":"00.000Z" "integration":"custom" }
Method Field
Set to “POST”.
URL Field
Set to {{url_template}}
OR https://development-data.strala.io/v1/journey/events
URL can either be hard coded or template based. The latter approach allows greater flexibility with data layer attributes, but Strala does not have URL elements that need to be parameterized.
Body Content Type
Select option “application/json”.
Body Data
Select “Body” option and provide a template reference.
NAME | VALUE |
Body | {{json_template}} |
Template Variables
Set name and value pairs to be referenced and replaced in templates. Variable values are custom values in this example, but can easily be provided as dynamic data layer attributes.
NAME | VALUE | NOTE |
touchpoint_id | 124567 | Pulled from the strala_id parameter |
who_uuid | fb2b9154-4a27-4387-ae71-5cd8d9a9b1df | Comes from Tealium or Strala |
organization_uuid | 7e1a7bcd-6fc8-42ad-b17f-59067fc1a795 | Provided by Strala |
event_type | touchpoint_interaction | Hard coded |
event_date_time | 2019-02-10T00":"00":"00.000Z | Pulled from system time |
integration | tealium | Hard coded |
Resulting JSON structure:
{ "touchpoint_id":"124567" "who_uuid":"fb2b9154-4a27-4387-ae71-5cd8d9a9b1df" "organization_uuid":"7e1a7bcd-6fc8-42ad-b17f-59067fc1a795" "event_type":"touchpoint_interaction" "event_date_time":"2019-02-10T00":"00":"00.000Z" "integration":"tealium" }
Templates
NAME | VALUE |
json_template | { "touchpoint_id":"{{touchpoint_id}}" "who_uuid":"{{who_uuid}}" "organization_uuid":"{{organization_uuid}}" "event_type":"{{event_type}}" "event_date_time":"{{event_date_time}}" "integration":"{{integration}}" } |
Templates Rendered
Internally templates get rendered (see below) and their content injected where referenced.
NAME | VALUE |
json_template | { "touchpoint_id":"124567" "who_uuid":"fb2b9154-4a27-4387-ae71-5cd8d9a9b1df" "organization_uuid":"7e1a7bcd-6fc8-42ad-b17f-59067fc1a795" "event_type":"touchpoint_interaction" "event_date_time":"2019-02-10T00":"00":"00.000Z" "integration":"tealium" } |