SettingsOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
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.
[null,null,["Last updated 2022-07-22 UTC."],[],[],null,["Specifies custom options for your Firebase Analytics instance. You must set these before initializing `firebase.analytics()`.\n\n**Signature:** \n\n export interface SettingsOptions \n\nProperties\n\nSettingsOptions.dataLayerName\n\nSets custom name for `dataLayer` array used by `gtag.js`.\n\n**Signature:** \n\n dataLayerName?: string;\n\nSettingsOptions.gtagName\n\nSets custom name for `gtag` function.\n\n**Signature:** \n\n gtagName?: string;"]]