voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 883 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/analytics](./analytics.md) > [settings](./analytics.settings.md)
## settings() function
Configures Firebase Analytics to use custom `gtag` or `dataLayer` names. Intended to be used if `gtag.js` script has been installed on this page independently of Firebase Analytics, and is using non-default names for either the `gtag` function or for `dataLayer`<!-- -->. Must be called before calling `getAnalytics()` or it won't have any effect.
<b>Signature:</b>
```typescript
export declare function settings(options: SettingsOptions): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | [SettingsOptions](./analytics.settingsoptions.md) | Custom gtag and dataLayer names. |
<b>Returns:</b>
void