ÃÛ¶¹ÊÓÆµ

onBeforeLinkClickSend

IMPORTANT
This callback is deprecated. Use filterClickDetails instead.

The onBeforeLinkClickSend callback allows you to register a JavaScript function that can alter link tracking data you send just before that data is sent to ÃÛ¶¹ÊÓÆµ. This callback allows you to manipulate the xdm or data object, including the ability to add, edit, or remove elements. You can also conditionally cancel the sending of data altogether, such as with detected client-side bot traffic. It is supported on Web SDK 2.15.0 or later.

This callback only runs when clickCollectionEnabled is enabled and filterClickDetails does not contain a registered function. If clickCollectionEnabled is disabled, or if filterClickDetails contains a registered function, then this callback does not execute. If onBeforeEventSend and onBeforeLinkClickSend both contain registered functions, onBeforeLinkClickSend is executed first.