Personalized value in URL
Hi ,
Hope all are doing well.
We've been tasked with personalizing the order ID within a URL. I've successfully used a script to personalize the order ID, and it's updating correctly. However, when I include this token within a URL, the URL breaks. URL doesn't work as expected and displays the script within the link.
In the email template, I've hardcoded the https:// part, while the rest of the URL and the personalization are stored in a token. This token, containing the personalized information, is then appended to the https:// portion.
However, when I included the https:// part directly in the script and used the token within the mailer, the URL worked smoothly. Unfortunately, that particular link lacked trackability.
Script :
#set($myProtectcode = $lead.protectedCodes_c)
#if($myProtectcode.contains(","))
#set($values = $myProtectcode.split(","))
#set($firstValue = $values.get(0))
#set($dynamiclink="xyz.html?Oid=$firstValue&src=email")
$dynamiclink
#else
#set($dynamiclinknew="xyz.html?Oid=$myProtectcode&src=email")
$dynamiclinknew
Kindly help.
Thanks & Regards,