Skip to content

Tag Manager API create trigger 500 error #3596

@weilinzung

Description

@weilinzung

A screenshot that you have tested with "Try this API".

We have encountered an issue with one of the Google Tag Manager API methods, which suddenly appears to be experiencing a 500 “Experienced an internal error” outage. Since there is no real public GTM API support team like Google Analytics, we appreciate it if you could direct us to the appropriate support channel to address this matter.

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://support.google.com/tagmanager/thread/314249307/tag-manager-api-create-trigger-500-error

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

APIs Explorer:

POST https://tagmanager.googleapis.com/tagmanager/v2/accounts/{{account_id}}/containers/{{container_id}}/workspaces/2/triggers?key=[YOUR_API_KEY] HTTP/1.1

Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "name": "Test trigger with filters",
  "type": "pageview",
  "filter": [
    {
      "parameter": [
        {
          "type": "boolean",
          "value": "true",
          "key": "ignore_case"
        },
        {
          "type": "template",
          "key": "arg1",
          "value": "thank"
        }
      ],
      "type": "matchRegex"
    }
  ]
}

A clear and concise description of what the bug is, and what you expected to happen.

When creating a GTM trigger via the API, the 500 “Experienced an internal error” shows.

unnamed

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

It is usually no issue, but this 500 error suddenly happened last week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions