{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"**This endpoint allows you to update your current setting for Google Analytics.**\n\nGoogle Analytics helps you understand how users got to your site and what they're doing there. For more information about using Google Analytics, please refer to [Google’s URL Builder](https://support.google.com/analytics/answer/1033867?hl=en) and their article on [\"Best Practices for Campaign Building\"](https://support.google.com/analytics/answer/1037445).\n\nWe default the settings to Google’s recommendations. For more information, see [Google Analytics Demystified](https://sendgrid.com/docs/ui/analytics-and-reporting/google-analytics/).","properties":{"headers":{"type":"object","properties":{"on-behalf-of":{"type":"string","description":"The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information."}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/GoogleAnalyticsSettings"}},"required":[],"additionalProperties":false,"definitions":{"GoogleAnalyticsSettings":{"title":"Settings: Google Analytics","type":"object","properties":{"enabled":{"type":"boolean","description":"Indicates if Google Analytics is enabled."},"utm_campaign":{"type":"string","description":"The name of the campaign."},"utm_content":{"type":"string","description":"Used to differentiate ads"},"utm_medium":{"type":"string","description":"Name of the marketing medium (e.g. \"Email\")."},"utm_source":{"type":"string","description":"Name of the referrer source. "},"utm_term":{"type":"string","description":"Any paid keywords."}},"examples":[{"enabled":true,"utm_source":"sendgrid.com","utm_medium":"email","utm_term":"","utm_content":"","utm_campaign":"website"}]}}},"name":"Update Google Analytics Settings","id":"sendgrid.tracking_settings.updategoogleanalyticstrackingsetting","example":{},"maxRequests":1,"summary":false}}