Element Text Translation

Locutus243

07-06-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_amsler

18-06-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>

Answers (0)