I just did a couple tests here and got a CDO field merge with a URL to work in an email link / button. As long as you select the picture / line item and paste in the proper CDO HTML (span tags), and ensure you don't hit "track URL" (as that creates a redirect URL for it), the links should work.
The only concern I have about this is it would likely affect your "click through" metrics - but if it's mainly transactional and you just need to get it sent out, this should do for now.
In any case, what implementation steps have you tried out so I can figure out a good place to start?
Hong Tai Lee
Thank you, Hong Tai - that is very helpful.
This was a lot easier in the old editor where you could access the HTML portion to make edits. Do you know of a work-around in the new/simplified email editor? I have been advised separately that "shared content" may be an option for embedding the HTML span tags - is this how you are achieving it?
So far I've only been able to use the "HTML" / Custom Code content section to add in code - the one that you drag in under design components. Right clicking and being able to jump right into the code was really quite nice. In turn, some inline styling was used on the "a" tag to make it look the way I need it to look.
Not sure how big the button is, but if you're dedicating an entire "image" section to it - when you select the picture "hyperlink" properties would pop up in the left column. Select the web page option, insert the appropriate field merge, and be absolutely sure to uncheck the "Add tracking for untracked external pages" checkbox in the bottom of that subsection. If you see "elqTrack=true" in your link, it means that the box is still checked and the link won't work.
So far I've been interpreting these extra steps as a way to minimize the chances of custom code / edits from breaking the responsive layout - but it's been such a relief being able to make responsive layouts with minimal coding now.
Hong Tai Lee
Hi richard.evans, I'm not sure if you were able to get this solved previously, but I was running into the same issue (new editor, not able to merge in a URL from a CDO (in my case, an event)). The workaround that I found was:
- Make sure the value in your field does not contain http:// or https://. For my case, the value in my field started with www.
- When you are inserting the field merge, make sure that "http://" or "https://" is in the "Web Address URL" field in the email editor and add your field merge after that.
- Turn off link tracking. This is unfortunate because if you are sending to an external link, you won't get the tracking details, but for us it is for a somewhat unimportant link for us to track
Here's what my link looks like in the "Web Address URL" field:
Hope that helps!
I believe Josh Martin has this correctly answered. I'll add a few comments:
- I would suggest adding the entire URL to the merge field or cdo merge field, and omit http:// and https:// as Josh mentions
- When you add the merge field the span tags will appear in the link as follows: <span class="eloquaemail">_Merge_Field__1</span>
- Remove the span class portions from the link
- The final link will look like this: http://~~eloqua..type--emailfield..syntax--_Merge_Field__1~~?elqTrackId=
- Ensure link tracking is turned off for this link