Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 594

Traacking not working when alias is created dynamically in SSJS block

$
0
0

I am creating a chunk of html content by iterating through an external json.Most of this works nicely but not the tracking of the alias on links.

The button part looks like this:

html += '<a href="'+props.link+'" style="text-decoration:none;" target="_blank" alias="'+props.alias+'">'+props.text+'</a><!-- Button // -->';

The whole chunk is lastly set into an ampscript parameter, like so

  Variable.SetValue("@bodyContent", html);

and then later output within the email body.

I would really like to find a way to make the alias work (alias="'+props.alias+') as my whole idea with a complex email is based on the dynamic creation of all content.

Any help would be highly appreciated


Viewing all articles
Browse latest Browse all 594

Latest Images

Trending Articles



Latest Images