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-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [analytics](/docs/reference/js/v8/firebase.analytics).\n- SettingsOptions \nSpecifies custom options for your Firebase Analytics instance.\nYou must set these before initializing `firebase.analytics()`.\n\nIndex\n\nProperties\n\n- [dataLayerName](/docs/reference/js/v8/firebase.analytics.SettingsOptions#datalayername)\n- [gtagName](/docs/reference/js/v8/firebase.analytics.SettingsOptions#gtagname)\n\nProperties\n\nOptional dataLayerName \ndataLayerName: string \nSets custom name for `dataLayer` array used by gtag.\n\nOptional gtagName \ngtagName: string \nSets custom name for `gtag` function."]]
Specifies custom options for your Firebase Analytics instance. You must set these before initializing
firebase.analytics()
.