A set of common Google Analytics config settings recognized by gtag.js
.
Signature:
export interface GtagConfigParams
Properties
Property | Type | Description |
---|---|---|
allow_ad_personalization_signals | boolean | If set to false, disables all advertising personalization with gtag.js . See Disable advertising features |
allow_google_signals | boolean | If set to false, disables all advertising features with gtag.js . See Disable advertising features |
cookie_domain | string | Defaults to auto . 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 _ga . 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 |
GtagConfigParams.allow_ad_personalization_signals
If set to false, disables all advertising personalization with gtag.js
. See Disable advertising features
Signature:
'allow_ad_personalization_signals'?: boolean;
GtagConfigParams.allow_google_signals
If set to false, disables all advertising features with gtag.js
. See Disable advertising features
Signature:
'allow_google_signals'?: boolean;
GtagConfigParams.cookie_domain
Defaults to auto
. See Cookies and user identification
Signature:
'cookie_domain'?: string;
GtagConfigParams.cookie_expires
Defaults to 63072000 (two years, in seconds). See Cookies and user identification
Signature:
'cookie_expires'?: number;
GtagConfigParams.cookie_flags
Appends additional flags to the cookie when set. See Cookies and user identification
Signature:
'cookie_flags'?: string;
GtagConfigParams.cookie_prefix
Defaults to _ga
. See Cookies and user identification
Signature:
'cookie_prefix'?: string;
GtagConfigParams.cookie_update
If set to true, will update cookies on each page load. Defaults to true. See Cookies and user identification
Signature:
'cookie_update'?: boolean;
GtagConfigParams.page_location
The URL of the page. See Page views
Signature:
'page_location'?: string;
GtagConfigParams.page_title
The title of the page. See Page views
Signature:
'page_title'?: string;
GtagConfigParams.send_page_view
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
Signature:
'send_page_view'?: boolean;