I’m attempting to create a purely HTML email (i.e. NOT using the drag-and-drop builder), and I’m to the point where I need to insert an unsubscribe link at the bottom of my email.
I’ve been trying to MacGyver a solution using a merge code for an Automation Link and just inserting it as plain text (which is typically seen as a hyperlink in the contact’s inbox) as shown below:
The code looks like this:
<p class="footer-text">To update your email preferences or unsubscribe from this list, click below:
<br/>
~OptOut_21~</p>
The problem? It’s a huge ugly link, rather than having a simple, clean look (screenshot from the drag and drop builder):
I tried this:
<a href="~OptOut_21~">click here</a>
And I get directed to Infusionsoft’s “Page Not Found” when I click that link in a test email.
What am I missing?
Thanks!
What does the automation link show for the text it is to use in lieu of the actual URL?
Thanks for your reply, Candice!
Through an (uncharacteristically) informative conversation with chat support, I learned that the ~OptOut_21~ code doesn’t work. What I needed to do was go into an email template, convert it to raw HTML, and pull the merge code from the unsubscribe block at the bottom, which reads more like ~Link-615776~.
Interestingly, I tried converting several templates to HTML and each had a unique code. I’m not sure what the implications of this are. However, it seems to do the trick!
How do you “convert it to raw HTML”? (I’m trying use your found solution)
1 Like
Hey Dan!
To convert a template to HTML, open it up for editing and click “Use Code Builder” like this:
This will only work on a legacy email template (create one by navigating to Marketing → Templates). If you’ve saved an email to “My Templates” using Infusionsoft’s newer email builder, I don’t know how to get the HTML for that.
Once you’ve opened the screen with the template’s HTML, the link code is toward the bottom:
Does that help?
Yes, that helps! Thanks!! By the way, have you discovered if the unique code, ie. ~Link-615776~ has any signficance or correlates to anything in particular – or if it just works no matter what the number is? The first number I got and tested seems to redirect properly to an unsubscribe page, but I wonder what will happen if I keep using that same code for future email sends… Thanks for any additional insights you’ve gained. – Dan
Glad it seems to be working for you!
I am still pretty in the dark as far as the link code goes- my best guess would be that unique codes are used for individual emails to track which email a contact unsubscribes from. So if you use that code, it may look as though any unsubscribes are actually on the template you stole the link from, not on the email you inserted it into.
Again, that’s only my guess- I don’t really have any evidence to back that up.