Expand my Community achievements bar.

SOLVED

Variables in VEC Custom Code

Avatar

Level 2

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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-attribute...

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@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-attribute...