#Configuration

While the default configuration works for most use cases, you might want to configure some of Audit.js behaviors.
ℹ️ Your Dashboard configuration will override these configuration values unless they have been set with a read-only mode.

#Usage

.config(optionName: String, optionValue: Any, readOnly?: Boolean): this

.config(options: Object, readOnly?: Boolean): this

#Options

#debug

  • Type: Boolean
  • Default: false
When debug mode is enabled, Poool's SDK will log everything it does in the browser console.

#cookies_enabled

  • Type: Boolean
  • Default: false
Enable/disable all tracking actions used by Poool according to the latest GDPR compliancy measures.

#cookies_domain

  • Type: String
  • Default: null
Permet de définir un domaine personnalisé pour les cookies déposés par Poool.

#context

  • Type: String | String[]
  • Default: null
Used to assign a particular context to a reader with one or multiple custom values.
If no context is specified, native contexts or a default one will be used instead.

#custom_segment

  • Type: String
  • Default: null
Used to allocate a reader to a custom group previously created in Poool's Dashboard.

#custom_reader_id

  • Type: String
  • Default: null
Used to assign your own unique custom identifier to one of your readers.

#user_is_premium

  • Type: Boolean
  • Default: false
Allows you to set a reader status to already subscribed.
⚠️ This value is only used for statistical purposes.

#ati_auto_tracking_enabled

  • Type: Boolean
  • Default: false
Enable/disable automatic AT Internet tracking (AT Internet SDK integration required) for particular events.
⚠️ AT Internet SDK Version 5.7 or higher is required.

#ati_tracking_method

  • Type: String
  • Accepted values: default, events
  • Default: default
Used to setup AT Internet method to send tracking event (AT Internet SDK integration required).
tag.publisher.send is used by default. By setting events, events will be sent with tag.events.send method.
⚠️ AT Internet SDK Version 5.7 or higher is required.

#piano_auto_tracking_enabled

  • Type: Boolean
  • Default: false
Enable/disable automatic Piano tracking (Piano SDK integration required) for particular events.

#ga_auto_tracking_enabled

  • Type: Boolean
  • Default: false
Enable/disable automatic Google Analytics tracking (Google Analytics SDK integration required) for particular events.
⚠️ Regular Google Analytics SDK integration required, e.g using ga() tracking method.

#gtm_auto_tracking_enabled

  • Type: Boolean
  • Default: false
Enable/disable automatic Google Tag Manager tracking (GTM SDK integration required) for particular events.
Every event information is pushed to the dataLayer with the same structure as a Google Analytics event.

#gtag_auto_tracking_enabled

  • Type: Boolean
  • Default: false
Enable/disable automatic Google Analytics 4 tracking (Google Analytics 4 tag required) for particular events.
⚠️ Google Analytics 4 integration required, i.e using gtag() tracking method.

#auto_tracking_spec_v2

  • Type: Boolean
  • Default: false
Enable/disable the latest version of our connectors (GA, GTM, Gtag, AT & Piano). This version is more precise and allows for more detailed performance tracking in your analytics tools.
⚠️ This option cannot be used alone, it must be paired with one of the GA, GTM, Gtag, AT or Piano automatic tracking options.

#ati_tag_options

  • Type: Object
  • Default: {}
Allows to provide configuration options to the ATInternet.Tracker.Tag constructor. See the ATInternet documentation for more information.

#beacons

  • Type: Boolean
  • Default: true
Whether or not to send some tracking requests (mostly clicks behind a redirect) using navigator.sendBeacon instead of a normal XHR request.

#cookies_path

  • Type: String
  • Default: '/'
Used to define your own custom path for Poool cookies.