Thanks for previewing Google's new tag platform documentation! This site is in public beta. (Feedback)

Google Tag Configuration: create

Stay organized with collections Save and categorize content based on your preferences.

Creates a Google tag config. Try it now.

Request

HTTP request

POST https://www.googleapis.com/tagmanager/v2/+parent/gtag_config

Parameters

Parameter name Value Description
Path parameters
parent string Workspace's API relative path. Example: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/tagmanager.edit.containers

For more information, see the authentication and authorization page.

Request body

In the request body, supply a Google Tag Configuration resource with the following properties:

Property name Value Description Notes
Required Properties
type string Google tag config type. writable
Optional Properties
parameter[] list The Google tag config's parameters. writable

Response

If successful, this method returns a Google Tag Configuration resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.