Dynamic tokens
When you define a custom dashboard portlet, you can use pre-defined tokens that are replaced with the values stored in Marketing Platform for the current user when the portlet is invoked.
This feature is not available for custom portlets from Digital Analytics.
The following tokens are supported.
-
<user_name>
-
<user_first_name>
-
<user_last_name>
-
<user_email>
The URL is invoked with hidden variables passed as request parameters.
The values must be present in the user details in Marketing Platform. Also, you must know the names of the variables used by the target web site.
To use these tokens, enter the name value pairs in the Hidden Variables field of the Create Custom Portlet page. If you use multiple tokens, separate them with a semicolon.
For example, suppose you want to send a user's first and last name in a portlet URL. In this
example, the receiving web site expects fname
and lname
to contain
the user's first and last names respectively. You would complete the URL and
Hidden Variables fields as follows.
- URL -
www.example.com
- Hidden Variables -
fname=<user_first_name>;lname=<user_last_name>