Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Element Text Translation

Locutus243
Level 3
Level 3

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?

1 Accepted Solution
thomas_amsler
Correct answer by
Level 9
Level 9

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>

View solution in original post

0 Replies
thomas_amsler
Correct answer by
Level 9
Level 9

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>

View solution in original post