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

How do I insert a data extension variable immediately after an "="?

$
0
0

So within my email, I can call a data extension field:

%%User_Type%%

When previewed, this displays as either "Free" or "Premium" depending on the user.

For data tracking via google analytics, I want a link in my email to pass this information via URL argument:

www.mysite.com/?usertype=%%User_Type%%

However, this throws up a parsing error, wherein the system doesn't recognize the first "%%"

If I use THIS:

www.mysite.com/?usertype= %%User_Type%%

It works fine, except the output is "www.mystie.com/?usertype= Premium"

Note the space between the = and the Premium. This breaks the URL.


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>