Using Personalization blocks | Community
Skip to main content
August 20, 2024
Solved

Using Personalization blocks

  • August 20, 2024
  • 1 reply
  • 631 views

Hi, 

 

I am trying to create a workflow where each segment sees different banners. Currently that workflow is attached below. In each Segment, I have also specified Segment Code so that I can use the Segment Codes in Personalization blocks. However, within the Personalization block code, I am currently choosing "delivery.targets.deliveryTarget.targetPart.segmentCodeVal" . This does not seems to work and I would like to set condition to be used in Delivery so that Segment 1 sees image 1, segment 2 sees image two and so on. Please suggests ways onto how I could achieve the solutions. If you need any more information, please let me know.

 

Best,
Sching

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @chanutejo ,

If you're defining segment code inside split activity as below,

then you can use the below script in personalized block,

<% if ( targetData.segmentCode == 'segment1' ) { %> <IMG src="http://abcd.com/img1.png" border="0"> <% } else if ( targetData.segmentCode == 'segment2' ) { %> <IMG src="http://abcd.com/img2.png" border="0"> <% } else { %> <IMG src="http://abcd.com/img3.png" border="0"> <% } %>

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
August 20, 2024

Hi @chanutejo ,

If you're defining segment code inside split activity as below,

then you can use the below script in personalized block,

<% if ( targetData.segmentCode == 'segment1' ) { %> <IMG src="http://abcd.com/img1.png" border="0"> <% } else if ( targetData.segmentCode == 'segment2' ) { %> <IMG src="http://abcd.com/img2.png" border="0"> <% } else { %> <IMG src="http://abcd.com/img3.png" border="0"> <% } %>
 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups