PATCH /sites/{site_id}/integrations/google_tags
Add or update Google Tag IDs for a site. Existing tags not referenced in the request are preserved. A site may have a maximum of 25 tags total.
order is optional on input — it is auto-assigned for new tags and returned on all tags in the response.
Required scope: sites:write
Servers
- https://api.webflow.com/v2
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
site_id |
String | Yes |
Unique identifier for a Site |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
googleTagIds[] |
Array | Yes |
List of Google Tags configured for a site, sorted by order. |
googleTagIds[].order |
Integer | No |
Display order of the tag. Optional on input; always present on output. Auto-assigned for new tags and renormalized after deletion. |
googleTagIds[].displayName |
String | Yes |
A human-readable label for the tag. |
googleTagIds[].tagId |
String | Yes |
The Google Tag ID. Accepts G-, GT-, AW-, and DC- prefixes. Rejects UA- prefixes. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.