You want to create segments on UserGuiding using your data on Google Tag Manager data layer. Here is how to do it?

First, go to custom attribute create page

  • Identifier is the field (key) in your event layer and also the custom attribute name.

  • Enter the data format that you store the attribute on data layer.

  • Select Google Tag Manager as Data Source

  • *Enter the event name of the data layer where you store the attribute.

*See example below


Let's say you've pushed following event to dataLayer, and you want to segment user based on their color choices.

  'color': 'red',
  'conversionValue': 50,
  'event': 'customizeCar'

Your configurations should be as follow;
Identifier  -->  color
Data Format  -->  Text
GTM Event  -->  customizeCar

So, our JS code will search for the event customizeCar on dataLayer. And use it's color value as custom attribute.

After you create the custom attribute, it's time to assign custom attribute to a segment.

Related Articles:
What is Custom Attribute?
Creating Custom Attributes
How do I use the Custom Attributes the right way?

Did this answer your question?