v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-135672128.0 KB
accounts

Creates a GTM Trigger.

post/tagmanager/v2/{+parent}/triggers

Path parameters

parentstring required

GTM Workspace's API relative path.

Request body

type'eventTypeUnspecified' | 'pageview' | 'domReady' | 'windowLoaded' | 'customEvent' | 'triggerGroup' | 'init' | 'consentInit' | 'serverPageview' | 'always' | 'firebaseAppException' | 'firebaseAppUpdate' | 'firebaseCampaign' | 'firebaseFirstOpen' | 'firebaseInAppPurchase' | 'firebaseNotificationDismiss' | 'firebaseNotificationForeground' | 'firebaseNotificationOpen' | 'firebaseNotificationReceive' | 'firebaseOsUpdate' | 'firebaseSessionStart' | 'firebaseUserEngagement' | 'formSubmission' | 'click' | 'linkClick' | 'jsError' | 'historyChange' | 'timer' | 'ampClick' | 'ampTimer' | 'ampScroll' | 'ampVisibility' | 'youTubeVideo' | 'scrollDepth' | 'elementVisibility'

Defines the data layer event that causes this trigger.

accountIdstring

GTM Account ID.

notesstring

User notes on how to apply this trigger in the container.

tagManagerUrlstring

Auto generated link to the tag manager UI

namestring

Trigger display name.

pathstring

GTM Trigger's API relative path.

triggerIdstring

The Trigger ID uniquely identifies the GTM Trigger.

containerIdstring

GTM Container ID.

workspaceIdstring

GTM Workspace ID.

fingerprintstring

The fingerprint of the GTM Trigger as computed at storage time. This value is recomputed whenever the trigger is modified.

parentFolderIdstring

Parent folder id.

Response

Successful response