Skip to content

bueno-analytics/analytics-opt-out-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

457467c Â· Sep 20, 2022

History

12 Commits
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 20, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022
Sep 19, 2022

Repository files navigation

analytics-opt-out-plugin

Npm package version Release workflow

A simple plugin for disabling event delivery in @segment/analytics-next.

Installation

npm install --save @bueno-systems/analytics-opt-out-plugin
# or
yarn add @bueno-systems/analytics-opt-out-plugin

💡 TypeScript types are included, requires typescript@>=4.5

Usage

import { OptOutPlugin } from '@bueno-systems/analytics-opt-out-plugin'

AnalyticsBrowser.load({
  writeKey: 'ABCD',
  plugins: [
    new OptOutPlugin({
      optOut: true
    })
  ]
})