Skip to main content
Solved

Adding a segment to a snippet

  • November 17, 2022
  • 2 replies
  • 130 views

Is this possible? 

Ideally we’d like to have a snippet that shows 

{{customer}}

{{customer.segments}}

 

but more specifically, we’d like to be able do a function, if customer in this segment, snippet should do this.

 

The less fun workaround is to make a campaign to add attributes to the user, but was wondering if we can just access a customer’s segments directly in the snippet editor.

 

Thanks in advance!

Best answer by matt

Ended up doing that workaround and it wasn’t too bad. :)

 

Have a large catch all “Segment → Attribute” campaign, triggered whenever someone enters any of the 5+ Segments that we’d like to be able to treat like Attributes.

Then have 5+ separate attribute updates (Create or Update Person) that are filtered by the 5+ specific Segments via Action Conditions.

 

View original
Did this topic help you find an answer to your question?

2 replies

  • Author
  • Novice
  • 3 replies
  • Answer
  • November 17, 2022

Ended up doing that workaround and it wasn’t too bad. :)

 

Have a large catch all “Segment → Attribute” campaign, triggered whenever someone enters any of the 5+ Segments that we’d like to be able to treat like Attributes.

Then have 5+ separate attribute updates (Create or Update Person) that are filtered by the 5+ specific Segments via Action Conditions.

 


boostmyemail

Curious to know what your specific use case was for this? Seems like an interesting implementation. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings