Element Text Translation | Community
Skip to main content
Level 3
June 7, 2019
Solved

Element Text Translation

  • June 7, 2019
  • 1 reply
  • 2739 views

In our Adobe Launch rules I often use the innerText on elements such as buttons.

Although our website is UK only, we frequently get customers accessing our website from abroad and translating the page. My innerText is therefore sent to Adobe Analytics in a variety of languages. I wondered if anybody had found a good way round this?

There are obviously a few options like a lookup table...but none that seem particularly easy.

Any ideas?

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

We have a similar issue. So what we did is to add a data attribute to the elements in question. As we are in a CMS environment we even exposed this to the authors so they can define the tracking value. So even if e.g. the link text changes the value tracked with AA stays the same:

<button onclick="openOverlay();" data-analytics-name="Overlay button">Open overlay</button>

1 reply

thomas_amslerAccepted solution
Level 6
June 19, 2019

We have a similar issue. So what we did is to add a data attribute to the elements in question. As we are in a CMS environment we even exposed this to the authors so they can define the tracking value. So even if e.g. the link text changes the value tracked with AA stays the same:

<button onclick="openOverlay();" data-analytics-name="Overlay button">Open overlay</button>