Browser packages

With a Headless implementation, you have complete control over the code by utilizing our NPM packages. This also means that you can determine which browser pixel will be loaded. Regardless of your configuration settings in the channel to enable the browser pixel, it will NOT function until you add the specific NPM package for that channel.

Packages will still verify whether you have browser pixel enabled for a specific channel. They will only load third-party scripts if this feature is enabled. This means that if you have the pixel installed but it is disabled in our configuration, you will not experience any performance degradation.

Each channel's documentation will have a link to the package on the first page.

Now, let's look at how to add the browser package for the Meta channel.

Initialization with browser pixel added
import { init } from '@blotoutio/edgetag-sdk-js'
import facebook from '@blotoutio/providers-facebook-sdk'

init({
  edgeURL: 'https://d.mysite.com',
  disableConsentCheck: true,
  providers: [facebook]
})

Last updated

Was this helpful?