I need to include a link go google analytics (in this case in an email Kentico is generating):
I have this (you will see I tried a few different options):
(Note AppSettingValue is a macro to pull something from the web.config.)
<img src="https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event" />
<img src='https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event' />
<img src='{%"https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event" #%}' />
<img src='{%"https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event" |(encode)false #%}' />
However, in the resulting email the & characters, which are supposed to separate the fields, are being escaped to &
<img src="https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event">
<img src="https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event">
<img src="https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event">
<img src="https://www.google-analytics.com/collect?tid=1234&cid=456&t=event&ec=event">
I'm not sure how to fix this. (Yes, I am a newbie, so your help would be appreciated.)
Context: this is MVC, version is 11.0.49 and the code above is in a Marketing Email Template.