Possible to replace Content of Link Clicks in the JavaScript tracker?
With Button Clicks it is possible to override the label of the button by adding a "data-sp-button-label" attribute, has anybody achieved the same functionality for Link Clicks, overriding content?
I can't find that the same functionality is built in but perhaps I can do it by setting trackContent to false and add the content via a custom entity?
Any experiences and/or ideas are highly appreciated.
2
1
2
trackContent
option is by default set tofalse
. Unless you explicitly set this totrue
, the content of the link won't be tracked.There are two options you could utilise to add custom attributes to the link click event.elementContent
field of the link click event (if tracking it, is enabled).