Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag manager API trigger creation 500 errors #21131

Open
howlCode opened this issue Dec 26, 2024 · 0 comments
Open

Tag manager API trigger creation 500 errors #21131

howlCode opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@howlCode
Copy link

howlCode commented Dec 26, 2024

We are experiencing an issue with the Google Tag Manager API method to create a trigger which has suddenly started to give 500 status with the message "Experienced an internal error". We can't seem to find a team that handles this API directly and so we'd appreciate if you could help us find the correct support route. This issue appears to be triggered when using either the ruby gem or posting to the API directly with a rest client. It was working fine until late last month AFAICT.

POST https://www.googleapis.com/tagmanager/v2/accounts/{ACCOUNT_id}/containers/{CONTAINER_ID}/workspaces/{WORKSPACE_ID}/triggers?access_token={ACCESS_TOKEN}

Authorization: Bearer {ACCESS_TOKEN}
Accept: application/json
Content-Type: application/json

BODY
{
  "name": "H&D Event Category",
  "accountId": "{ACCOUNT_ID}",
  "containerId": "{CONTAINER_ID}",
  "workspaceId": "{WORKSPACE_ID}",
  "type": "customEvent",
  "customEventFilter": [{
    "type": "equals",
    "parameter": [{
        "type": "template",
        "key": "arg0",
        "value": "{{_event}}"
      },
      {
        "type": "template",
        "key": "arg1",
        "value": "gaTriggerEvent"
      }
    ]
  }],
  "filter": [{
    "type": "contains",
    "parameter": [{
      "type": "template",
      "key": "arg0",
      "value": "{{gaEventCategory}}"
    }, {
      "type": "template",
      "key": "arg1",
      "value": "Hours"
    }]
  }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants