Skip to content

Tealium AudienceStream

Tealium AudienceStream is an omnichannel customer segmentation and real-time action engine. AudienceStream takes the data that flows into EventStream and creates visitor profiles representing the most important attributes of your customers’ engagement with your brand.

The Braze and Tealium integration leverages AudienceStream visitor profiles. Shared behaviors segment these profiles to create sets of visitors with common traits, known as audiences. These audiences can help fuel your marketing technology stack in real-time via connectors.

Prerequisites

Integration

Step 1: Set up attributes and badges

Understanding attributes

The first step in using AudienceStream is to create attributes. Attributes allow you to define the important characteristics representing a visitor’s habits, preferences, actions, and engagement with your brand.

Visit Attributes: Visit attributes relate to the user’s current visit (or session). The data stored in these attributes persist for the length of the visit. Some example visit attributes include:

  • Visit Duration (Number)
  • Current Browser (String)
  • Current Device (String)
  • Page View Count (Number)

Visitor Attributes: Visitor attributes relate to the current user. The data stored in these attributes persist for the lifetime of the user. Some example visitor attributes include:

  • Lifetime Order Value (Number)
  • First Name (String)
  • Birthdate (Date)
  • Purchases Brands (Tally)

Visit Tealium for a full list of available data types.

Attribute enrichment

Once you identify your desired attributes, you can configure them with enrichments - business rules that determine when and how to update the values of attributes. Each data type offers its own selection of enrichments for manipulating the attribute’s value. This is associated with the “WHEN” setting. The following options are available for each visit and visitor attribute:

  • New Visitor: occurs the first time a visitor comes to your site.
  • New Visit: occurs on a new visit by a visitor.
  • Any Event: occurs on any event.
  • Visit Ended: occurs when a visit ends.

You can also create a custom condition, called a rule, that will determine when the enrichment will occur.

Badges

Badges are special visitor attributes that represent valuable behavior patterns. Badges are assigned or removed from visitors based on the logic of their enrichments. This logic usually combines multiple conditions to capture visitor segments or sets a threshold for when a particular value is reached.

Attribute and badge example

Create a visitor attribute “Lifetime Order Value” that calculates the cumulative amount spent (order_total) by the customer for all completed orders (purchase event). To set up lifetime order value in your Tealium account, adhere to the following the instructions:

  1. Navigate to AudienceStream > Visitor/Visit Attributes and click Add Attribute.
  2. Select the scope as Visitor and click Continue.
  3. Select the data type Number and click Continue.
  4. Enter the name of the attribute, “Lifetime Order Value”.
  5. Click Add Enrichment and select Increment or Decrement Number.
  6. Select the attribute containing the value to increment by (order_total).
  7. Leave the “WHEN” set to “Any Event”, then click Create a New Rule.
  8. Create a rule that identifies when a purchase event has occurred.
  9. Click Save, then Finish.

Now, all customers will have a lifetime order value attribute tied to them.

You may create badges that help you classify and target your users by certain attributes they share. For the following example, we create a VIP Badge for users with a “Lifetime Order Value” of over $500.

  1. Navigate to AudienceStream > Visitor/Visit Attributes and click Add Attribute.
  2. Select the scope as Visitor and click Continue.
  3. Select the data type Badge and click Continue.
  4. Enter the name of the badge, “VIP”.
  5. Click Add Enrichment and select Assign Badge.
  6. Leave the “WHEN” set to “Any Event”.
  7. Create a rule for badge assignment by selecting Create Rule. Assign a title to this rule, and using the previous attribute created, set the rule to “…has attribute “Lifetime Order Value greater than 500”.
  8. Click Save, and then Finish.

Step 2: Create an audience

From the Tealium home page, select Audiences under AudienceStream from the sidebar navigation. Here, you can create an audience of users with common attributes. A user’s entry into or exit from this audience will be the trigger for the Connector Action, set up in the next step, that passes this information to the user profile in Braze.

First, name your audience, and then consider what attributes would apply to the type of audience you are trying to create. For example, to create an audience of VIP users, you could create an audience of visitors who have the VIP badge.

Make sure to Save / Publish your audience when finished.

Step 3: Create an event connector

A connector is an integration between Tealium and another vendor used to transmit data. These connectors contain actions that represent their partner’s supported APIs.

  1. From the sidebar in Tealium under Server-Side, navigate to AudienceStream > Audience Connectors.
  2. Select the blue + Add Connector button to look through the connector marketplace. In the new dialogue box that appears, use the spotlight search to find the Braze connector.
  3. To add this connector, click the Braze connector tile. When clicked, you can view the connection summary and a list of the required information, supported actions, and configuration instructions. The configuration comprises three steps: source, configuration, and action.

Source

In the Source dialogue that appears, select the audience you created in the previous step and a trigger that you feel is appropriate for your situation. You also can toggle on the frequency cap to control how often this action triggers.

Configuration

Next, a Configuration dialogue will appear. Select Add Connector at the bottom of the page. Name your connector and provide your Braze API endpoint and Braze REST API key here.

If you have created a connector before, you may optionally use an existing one from the available connector list and modify it to fit your needs with the pencil icon or delete it with the trash icon.

After you have created or selected a connector to link this audience, click Done to continue.

Action

Next, name your connector action and select an action type that will send data according to the mapping you configure. Here, you will map Braze attributes to Tealium attribute names. Depending on which action type you choose, there will be a varied selection of fields required by Tealium. The following are examples and explanations of these fields.

This action allows you to track user, event, and purchase attributes all in one action. Although the Track User action is the same for both AudienceStream and EventStream, Tealium recommends setting user attribute mappings with AudienceStream actions and the event and purchase mappings with EventStream actions.

This action allows you to delete users from the Braze dashboard.

This action allows you to add or remove users from Braze SMS or email subscription groups.

Select Finish.

Summary

View the summary of the connector you created. If you would like to modify your chosen options, select Back to edit or Finish to complete.

Your connector is now displayed in the list of connectors on your Tealium home page.

Make sure to save or publish your connector when finished. The actions you configured will now fire when the trigger connections are met.

Step 4: Test your Tealium connector

After your connector is up and running, you should test it to ensure it’s working properly. The most simple way to test this is to use the Tealium Trace Tool. To start using Trace, make sure you have added the Tealium Tools browser extension.

  1. To start a new trace, select Trace on the sidebar under Server-Side options. Click Start and capture the Trace ID.
  2. Open the browser extension and enter the Trace ID into AudienceStream Trace.
  3. Examine the real-time log.
  4. Check for the action you want to validate by clicking the Actions Triggered entry to expand.
  5. Look for the action you want to validate and view the log status.

Refer to Tealium’s Trace documentation for more detailed instructions on implementing Tealium’s Trace tool.

Integration demo

Potential data point overages

There are three primary ways that you might accidentally hit data overages when integrating Braze through Tealium:

Sending duplicate data - only send Braze deltas of attributes

Tealium doesn’t send Braze deltas of user attributes. For example, if you have an EventStream action that tracks a user’s first name, email, and cell phone number, Tealium will send all three attributes to Braze anytime the action is triggered. Tealium won’t be looking for what changed or was updated and send only that information.

Solution:
You can check your backend to assess whether an attribute has changed or not, and if so, call Tealium’s relevant methods to update the user profile. This is what users who integrate Braze directly usually do.
OR
If you don’t store your own version of a user profile in your backend and can’t tell if attributes change or not, you can use AudienceStream and create enrichments to only send user attributes when values have changed.

Sending irrelevant data or needlessly overwriting data

If you have multiple EventStreams that target the same event feed, all actions enabled for that connector will automatically fire anytime a single action is triggered, this could also result in data being overwritten in Braze.

Solution:
Set up a separate event specification or feed to track each action.
OR
Disable actions(or connectors) that you do not want to fire by using the toggles in the Tealium dashboard.

Initializing Braze too early

Users integrating with Tealium using the Braze Web SDK tag may see a dramatic increase in their MAU. If Braze is initialized on page load, Braze will create an anonymous profile every time a web user navigates to the website for the first time. Some may want to only track user behavior when users have completed some action, such as “Signed In” or “Watched Video”, to lower their MAU count.

Solution:
Set up load rules to determine exactly when and where a tag loads on your site.

HOW HELPFUL WAS THIS PAGE?
New Stuff!