Does anyone have any standard script for pulling DataLayer information for personalization? | Community
Skip to main content
Level 2
December 6, 2021
Solved

Does anyone have any standard script for pulling DataLayer information for personalization?

  • December 6, 2021
  • 1 reply
  • 676 views

We currently capture the first name of the visitor in the DataLayer and would like to pull that to personalize the headline with the name. Looking for suggestions on how best to do that.

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 jezwn

Hi @cjara1 You can make use of profile parameters to pull the datalayer value into target. 

 

Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/odd-issues-with-profile-parameters/m-p/427214#M7068

Once you have the datalayer variable in target you can use it in the offers as, ${profile.firstname}

 

Reference: https://experienceleague.adobe.com/docs/target/using/experiences/offers/passing-profile-attributes-to-the-html-offer.html?lang=en

 

I haven't tried the second part, but hope it does help.

1 reply

jezwn
jezwnAccepted solution
Level 5
December 10, 2021

Hi @cjara1 You can make use of profile parameters to pull the datalayer value into target. 

 

Reference: https://experienceleaguecommunities.adobe.com/t5/adobe-target-questions/odd-issues-with-profile-parameters/m-p/427214#M7068

Once you have the datalayer variable in target you can use it in the offers as, ${profile.firstname}

 

Reference: https://experienceleague.adobe.com/docs/target/using/experiences/offers/passing-profile-attributes-to-the-html-offer.html?lang=en

 

I haven't tried the second part, but hope it does help.