Can I include an html tag in a campaign?

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
I would like to add an html snippet like this to a campaign.  Possible?

<a href="https://squareup.com/market/bespoke-alfa-clothing/navy-and-red-polkadot-silk-square"; class="sq-embed-item"> on Square Market</a><script src="https://cdn.sq-api.com/market/embed.js"; charset="utf-8"></script>
Photo of Bespoke Alfa

Bespoke Alfa

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 0
  • 1
Photo of Tyler Scott

Tyler Scott, Employee

  • 805 Posts
  • 39 Reply Likes
Hey there! You can definitely drop in an HTML box which of course allows you to then enter in your own HTML. What is the goal for this particular piece of code or how are you wanting it to display? We're definitely not coders here in support, but dropping that snippet here in my test account does not work. Please just give me some more details when you have a chance and I'll do my best to help.

Thanks!
Photo of Bespoke Alfa

Bespoke Alfa

  • 3 Posts
  • 0 Reply Likes
So I have a square market Store and the HTML code Will allow people to click on a graphic of the item which will take them to my Square market.
Photo of Bespoke Alfa

Bespoke Alfa

  • 3 Posts
  • 0 Reply Likes
It should look like this for example
Photo of Tyler Scott

Tyler Scott, Employee

  • 805 Posts
  • 39 Reply Likes
Good morning and thank you for the info! So you're not going to be able to use any sort of script code in your HTML within emails. The short answer is that scripting is unsupported in emails. The biggest reason being security risks involved with a script running inside an application that has all that personal information stored in it. Webmail clients are mostly running the interface in JavaScript and are not keen on your email interfering with that, and desktop client filters often consider JavaScript to be an indicator of spam or phishing emails. Even in the cases where it might run, there really is little benefit to scripting in emails. Keep your emails as straight HTML and CSS to avoid the hassle. Here is a link with some more information on why it should be avoided. 

Hopefully this helps explain things a bit, but please let me know if I can assist further.