Variables in VEC Custom Code | Community
Skip to main content
bryan_w_bounteo
Level 2
September 26, 2024
Solved

Variables in VEC Custom Code

  • September 26, 2024
  • 2 replies
  • 678 views

Is there any way to pass/access any dynamic variables in a VEC Custom Code script?  Page params, profile attributes, etc. 

What about `options` that can be sent to a triggerView() call in addition to the identifier?  I've never seen them used outside of the `{page: false}` example.  Can I send `{pageName: "Home"}` and then access that in the Custom Code modification?  

How about Web SDK send event variables?

At least in Form based activities I can access Profile attributes.  Is that possible in VEC?

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 kandersen-1

@bryan_w_bounteo  Yes, you can use tokens, which allows you to dynamically reference data from the users profile. 
Eg. ${profile.geo.location.city}

There’s some great examples here: https://experienceleague.adobe.com/en/docs/target/using/experiences/offers/passing-profile-attributes-to-the-html-offer

2 replies

kandersen-1
Community Advisor
kandersen-1Community AdvisorAccepted solution
Community Advisor
September 26, 2024

@bryan_w_bounteo  Yes, you can use tokens, which allows you to dynamically reference data from the users profile. 
Eg. ${profile.geo.location.city}

There’s some great examples here: https://experienceleague.adobe.com/en/docs/target/using/experiences/offers/passing-profile-attributes-to-the-html-offer

Test forum signature