Encrypt URL parameters for Preference Center | Community
Skip to main content
Level 4
October 8, 2019
Solved

Encrypt URL parameters for Preference Center

  • October 8, 2019
  • 11 replies
  • 14167 views

Hi,

I am looking to encrypt URL parameters for the Unsubscribe link at all the delivery templates using 64bit encryption.

there is out of the box few function but the client is specifically looking for 64 bit encryption Utf 8.

I have created a javascript code file and I am having problem calling that into the template

example: if the url currently that takes you to preference center is www.google.com?email=xxx@gmail.com&country=usa need to get encrypted to render as

http://www.google.com?params=KLLK776WEWLXXZZLKLKLSDD

LET ME KNOW

THANKS

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 vendimb15716755

I got this one working. below is the code on the personalized block if anyone interested

<%

  loadLibrary("wp:base64.js");

  var _email= recipient.email;

  var _id = recipient.id;

  var url = "id=" + _id + "&email=" + _email;

%>

<%@ value object="provider" xpath="@trackingURL" %>/webApp/tstPreferenceCenter?params=<%=escapeUrl(Base64.encode(url))%>

11 replies

Level 4
November 9, 2019

HI Dima

I thought I resolved this issue but is not working well. Looks to be working on the preview but when trying on delivery is not working. The system throws errors when trying to send the email. it complains with following error.

JST -#ID# the result of the formula for the '<%LoadLibrary('URL in the '#ID#' delivery action is not valid . JST-#ID# failed to replace tracked URLs (content htmlContent)