Tracking In-Text Hyperlinks | Community
Skip to main content
April 23, 2024
Question

Tracking In-Text Hyperlinks

  • April 23, 2024
  • 2 replies
  • 1430 views

I have a campaign landing page in AEM with hyperlinks within the body of the page to other AEM pages. Is there a way to track the number of times that hyperlink is clicked on the campaign page? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 23, 2024

One of the simplest methods is to create an "Internal Campaign" tracking (ITM or ICID) using a Visit Level (or I suppose longer, but with custom attribution, Visit should be sufficient) expiry.

 

Similar to how you track your external campaigns (UTM or CID) into s.campaign (eVar0 / Tracking Code), you would capture and store your internal campaigns into your custom eVar specifically for linking within your site.

 

You can also get some interesting cross results between your external campaigns (what drove people to the site) and your internal campaigns (what drive people within the site during their visit).

 

Internal Campaigns don't have to be as detailed as external campaigns, because you already have access to the user's journey within your sites (Activity Map, Previous Page, Flow Diagrams, etc).

 

If you really need to get fancy, you could also add custom actions to those internal clicks to capture events, or additional correlations on the action, but I would investigate other options first.

 

You might even get away with just Activity Map data, with properly coded regions (the out of the box isn't very good), you can get a lot of insights right there.

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 23, 2024

I should add, that even with "Visit Level Expiries" on your eVars, each eVar has an Instance metric associated to it... this is when the eVar is explicitly set (and not just carrying forward the previous value)

 

Example Visit:

  • Page A
  • Click on Link (internal campaign X)
  • Page B
    • eVar1 is set to "X"
    • Instance of eVar1 is incremented
  • Page C
    • eVar1 maintains value "X"
    • Instance of eVar1 is not incremented
  • Page D
    • eVar1 maintains value "X"
    • Instance of eVar1 is not incremented

 

    Page Views Instance of eVar1
eVar1   3 1
  X 3 1

 

Krishna_Musku
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 23, 2024

So you want to track some links on the AEM pages right? I would say the easiest and quickest way to do is making that link as 'Priority Link' in that AEM component.

April 23, 2024

How do you make a Priority Link? If I have an internal hyperlink within an AEM campaign page how do I make that trackable to see how many people are clicking from my campaign page to another page on my website from the hyperlink on my campaign page?

Krishna_Musku
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
April 23, 2024

You can make that 'Priority Link' when authoring the page or that specific link. Once you made that link priority, '.cmstrack' will be added to the metric id. And you can see the data in the Link Name or eVar which you specified for Custom Link.