Skip to main content

updateSiteSettings

Updates an editable site's tracking and privacy settings, creating site settings if absent, and returns the site. Omitted settings retain their values; a new record uses its defaults. Requests a tracking script refresh. Requires tracking options edit access.

updateSiteSettings(
siteId: Int!
dnt: Boolean
autoIdentify: Boolean
useSecureCookies: Boolean
explicitAgent: Boolean
ipListText: String
defaultCurrency: String
): Site

Arguments​

updateSiteSettings.siteId ● Int! non-null scalar​

Site ID from sites.

updateSiteSettings.dnt ● Boolean scalar​

True ignores Do Not Track and tracks those visitors too; false skips visitors whose browser sends it. Defaults to true on new settings.

updateSiteSettings.autoIdentify ● Boolean scalar​

Whether an email address entered in a form or survey response becomes the visitor profile ID; defaults to true on new settings.

updateSiteSettings.useSecureCookies ● Boolean scalar​

Whether tracking cookies use the Secure attribute; defaults to false on new settings.

updateSiteSettings.explicitAgent ● Boolean scalar​

Whether Crazy Egg page captures use the Crazy Egg Bot user agent instead of a standard Chrome one; defaults to false on new settings.

updateSiteSettings.ipListText ● String scalar​

IP exclusion list text stored for this site.

updateSiteSettings.defaultCurrency ● String scalar​

Supported three-letter currency code such as USD, normalized to uppercase; null or empty inherits the account currency.

Type​

Site object​

A site with derived activity/install status plus optional tracking and settings data normalized for GraphQL clients. Returned by site and sites.