GCP: 400 Errors on /data?v=2&event_name=page_view

We have multiple domains using the Stape templates.

  • In all cases, in the GTM Web/Client container I have the Stape Data Tag and Unique Event Id templates added.
  • In all cases, in the sGTM containers, I am using the Stape FB cAPI tag template.

In Google Cloud Platform’s Cloud Run Logs Explorer, I am getting thousands and thousands (28K in the past 2 hours) of 400 errors for requestUrl: “https://metrics.\<redacted>.com/data?v=2&event_name=page_view”.

Example:

This is NOT happening to ALL sGTM setups.

All domains using the Stape templates live on the same code base and setups are identical. Even when I try to remove the Stape templates on both client GTM and sGTM and Publish, the 400 errors persist in GCP.

Error 400 means that the request was not processed by any client. That is, either no client has been added to sGTM (judging by the examples you have this Data Client), or the container version has not been published.

Good morning Alex. Actually, the container was published.

My apologies, I have not been able to reply with what I later found.

Based on a recommendation from one of the industry leaders, in the sGTM container, I used a single FB pixel tag that “inherits from client” with a corresponding trigger where RegEx matches page_view|add_to_cart|etc…

Something in the setup was the issue and I reverted the change.