Tag for a campaign's segment

007

Member
Hi all,
I'd like to setup a custom footer via twig that targets a campaign's segment name.

Like this:
Code:
{% if 'segment1' in CAMPAIGN_TARGET_SEGMENT_NAME %} <a href="http://mylink.com">Link for segment1 </a> {% endif %}

How can I do this? I don't see a campaign tag that gives me this data.
 
@007 - This is because we don't have such info available, i'll add it for the next release, it will be called CAMPAIGN_SEGMENT_NAME
 
  • Like
Reactions: 007
twisted1919 - Thanks for adding this to the new version. Since I'm using only numbers for the segment name (the numbers have meaning, and so text will break things), and integrating this into the app's functions via this new campaign tag, would it be possible to add a "display name" for the segment like there is for lists? This way, when creating campaigns via the GUI, I'd have a user-readable name for the segment dropdown box rather than just a series of numbers.
 
Back
Top