docs-devsite/analytics.gtagconfigparams.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
A set of common Google Analytics config settings recognized by gtag.js<!-- -->.
<b>Signature:</b>
export interface GtagConfigParams
| Property | Type | Description |
|---|---|---|
| allow_ad_personalization_signals | boolean | If set to false, disables all advertising personalization with <code>gtag.js</code>. See Disable advertising features |
| allow_google_signals | boolean | If set to false, disables all advertising features with <code>gtag.js</code>. See Disable advertising features |
| cookie_domain | string | Defaults to <code>auto</code>. See Cookies and user identification |
| cookie_expires | number | Defaults to 63072000 (two years, in seconds). See Cookies and user identification |
| cookie_flags | string | Appends additional flags to the cookie when set. See Cookies and user identification |
| cookie_prefix | string | Defaults to <code>_ga</code>. See Cookies and user identification |
| cookie_update | boolean | If set to true, will update cookies on each page load. Defaults to true. See Cookies and user identification |
| page_location | string | The URL of the page. See Page views |
| page_title | string | The title of the page. See Page views |
| send_page_view | boolean | Whether or not a page view should be sent. If set to true (default), a page view is automatically sent upon initialization of analytics. See Page views |
If set to false, disables all advertising personalization with gtag.js<!-- -->. See Disable advertising features
<b>Signature:</b>
'allow_ad_personalization_signals'?: boolean;
If set to false, disables all advertising features with gtag.js<!-- -->. See Disable advertising features
<b>Signature:</b>
'allow_google_signals'?: boolean;
Defaults to auto<!-- -->. See Cookies and user identification
<b>Signature:</b>
'cookie_domain'?: string;
Defaults to 63072000 (two years, in seconds). See Cookies and user identification
<b>Signature:</b>
'cookie_expires'?: number;
Appends additional flags to the cookie when set. See Cookies and user identification
<b>Signature:</b>
'cookie_flags'?: string;
Defaults to _ga<!-- -->. See Cookies and user identification
<b>Signature:</b>
'cookie_prefix'?: string;
If set to true, will update cookies on each page load. Defaults to true. See Cookies and user identification
<b>Signature:</b>
'cookie_update'?: boolean;
The URL of the page. See Page views
<b>Signature:</b>
'page_location'?: string;
The title of the page. See Page views
<b>Signature:</b>
'page_title'?: string;
Whether or not a page view should be sent. If set to true (default), a page view is automatically sent upon initialization of analytics. See Page views
<b>Signature:</b>
'send_page_view'?: boolean;