Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.

anchor function

Avatar

Level 3

Hello,

Could anyone explain how to use the anchor function in the VEC please?

What should I do if I want a CTA anchor to a certain position on the same page? How about on another page?

Thank you

1720953_pastedImage_0.png

3 Replies

Avatar

Level 10

Kathys,

The anchor is used to mark a place to which you want directly refer via a hyperlink. The dialog shown in the screenshot is exactly how to do it.

Select a text fragment that represent the desired destination for the CTA. Open that dialog and enter the name, for example cta-destination.

Then select the CTA and add/update the hyperlink.

If the CTA is referring to another page, then append the anchor name after the hash character (https://www.site.com/page#cta-destination).

If the CTA is referring to the anchor placed on the same page, then select "link to anchor in the text" option in the link builder dialog and enter cta-destination.

Hi Andrey - many thanks.

I selected the first line of a paragraph down on the page, where I want the CTA on top of the same page to anchor to this paragraph.

I created an anchor name for the first line of the paragraph and saved the change, then the selected text shows an underline

I then went to edit the CTA but no anchor can be found. Could you let me know how to progress please? Thank you so much

1725960_pastedImage_2.png

I just tested on another page (which is a SPA). It seems that you have to select a container that can include both your CTA and the anchor destination. They are far away from each other and I'm not able to select them all together on my test page...

On the SPA, I managed to link a CTA to the anchor name. However, in QA, clicking the CTA took me to our homepage - the url shows www.ourhomepage.co.uk/#destination

any idea what I did wrong? Thank you very much!

1725961_pastedImage_0.png