How to Add Anchor Links in Emails

Avatar

Avatar

wisemage_

Avatar

wisemage_

wisemage_

18-09-2018

How to add anchor links in emails, tracking code messing them up...

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

14-06-2019

Once the content is synchronized, you could disable tracking the the Libks viewlet of the Creative Designer.

Then it would keep the original URL and the anchor link should work

Answers (10)

Answers (10)

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

19-06-2019

Hi,

this is only relevant if you are using "relative" image urls anywhere in your E-Mail content.

I would rather assume that is never the case and absolute URLs are used for all images.

In that case, you can remove it from all templates.

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

19-06-2019

Hi Marie,

ah yes, you are right.

I just rebuilt such E-Mail here on my side.

It's all working fine.

The <span id="..."> target is kept as is and also the <a href="#..." is not touched when sending the E-Mail.

How are you creating the E-Mail?

Are you using the Creative Designer and default templates are also via AEM as it was stated initially in this thread?

If you are using the Creative Designer, that one adds a meta tag in the header to define a base url which is then used for all relative links etc. (<meta class="nl-dce-fragment" data-nl-name="EmailUrlBase">)

That also could impact what you are experiencing on your side.

If you are not using any relative image URLs etc, you could just remove that from the <head> area and relatives URLs shall work

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

19-09-2018

Hi wisemage_,

Can you please elaborate more on the error?

Regards,
Vipul

Avatar

Avatar

mariecastine

Avatar

mariecastine

mariecastine

19-06-2019

Thank you so much!! Funny how even Adobe support could not figure this one out <facepalm>

Avatar

Avatar

mariecastine

Avatar

mariecastine

mariecastine

19-06-2019

We do not use AEM. We create templates in Adobe Standard Campaign or just start and Email and build from scratch.

I did a test and deleting this code

       <meta class "nl-dce-fragment" data-nl-name="EmailUrlBase">

does make the anchors work properly.

However what is the ramifications of deleting this code? Will anything else break? Would it be ok to delete this from all templates?

Avatar

Avatar

mariecastine

Avatar

mariecastine

mariecastine

18-06-2019

That does not work because it does not show anchors as links in the tracking area.

Avatar

Avatar

ramon_bisswange

Employee

Avatar

ramon_bisswange

Employee

ramon_bisswange
Employee

18-06-2019

Yes you are right, that does not exist in Creative Designer.

There it will just display a message that links are read-only.

What shall work:

  • Choose the AEM template to use for send out
  • Open it in "default editor"
  • Choose "Tracked URLs" in the toolbar
  • There you can disable tracking for individual links

Avatar

Avatar

mariecastine

Avatar

mariecastine

mariecastine

18-06-2019

It does not show in the links area as a "link" so I can't turn off the tracking. What do you mean by "synchronized"?

Avatar

Avatar

mariecastine

Avatar

mariecastine

mariecastine

14-06-2019

anyone figured this out?

Avatar

Avatar

wisemage_

Avatar

wisemage_

wisemage_

20-09-2018

I mean in page reference links like:

  1. Name Anchors: <a href="#anchorname">...</a> ?
    <a name="anchorname">...</a>
  2. Back to Top Anchors: <a href="#top">Back to top</a>

No error, it is just not working.

Note: We prepare email with AEM and publish it to Campaign