SettingsOptions interface  |  Firebase JavaScript API reference (original) (raw)

SettingsOptions interface

Specifies custom options for your Firebase Analytics instance. You must set these before initializing firebase.analytics().

Signature:

export interface SettingsOptions 

Properties

Property Type Description
dataLayerName string Sets custom name for dataLayer array used by gtag.js.
gtagName string Sets custom name for gtag function.

SettingsOptions.dataLayerName

Sets custom name for dataLayer array used by gtag.js.

Signature:

dataLayerName?: string;

SettingsOptions.gtagName

Sets custom name for gtag function.

Signature:

gtagName?: string;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-22 UTC.