Skip to content

How to stop sending sdk_name label? #271

Answered by codecapitano
mk48 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mk48

This is a known "problem" (unnecessary data which adds to each beacon payload).
Midterm we plan to trim down Faro page loads even more.

Currently there's no setting to disable this, so you need a little workaround, see example below.

Remove the SDK meta data
Faro packages different meta data in so called Meta object, like MetaBrowser, MetaApp and so on.
The object containing SDK meta data is the MetaSDK object.

You can remove the respective meta by using the beforeSend() hook.

initializeFaro({
    url: ...,
    ...
    beforeSend(item: TransportItem) {
      delete item.meta.sdk;
      return item;
    },
});

PS:
Nevertheless I think making the sdk meta data optional (and maybe …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mk48
Comment options

@codecapitano
Comment options

Answer selected by mk48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants