Jump to top

GtagConfigParams

interface

A set of common Google Analytics config settings recognized by gtag.js. Web only.

Properties

allow_ad_personalization_signals

</>

If set to false, disables all advertising personalization with gtag.js. See {@link https://developers.google.com/analytics/devguides/collection/ga4/display-features | Disable advertising features }

allow_ad_personalization_signals: undefined | false | true;

allow_google_signals

</>

If set to false, disables all advertising features with gtag.js. See {@link https://developers.google.com/analytics/devguides/collection/ga4/display-features | Disable advertising features }

allow_google_signals: undefined | false | true;

cookie_domain

</>

Defaults to auto. See {@link https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id | Cookies and user identification }

cookie_domain: undefined | string;

cookie_expires

</>

Defaults to 63072000 (two years, in seconds). See {@link https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id | Cookies and user identification }

cookie_expires: undefined | number;

cookie_flags

</>

Appends additional flags to the cookie when set. See {@link https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id | Cookies and user identification }

cookie_flags: undefined | string;

cookie_prefix

</>

Defaults to _ga. See {@link https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id | Cookies and user identification }

cookie_prefix: undefined | string;

cookie_update

</>

If set to true, will update cookies on each page load. Defaults to true. See {@link https://developers.google.com/analytics/devguides/collection/ga4/cookies-user-id | Cookies and user identification }

cookie_update: undefined | false | true;

page_location

</>

The URL of the page. See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }

page_location: undefined | string;

page_title

</>

The title of the page. See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }

page_title: undefined | string;

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 {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }

send_page_view: undefined | false | true;