What are the /set_cookie requests in server-side Google Tag Manager (GTM)?

Written by

Giovani Ortolani Barbosa

Updated Oct 9, 2025 comments
  1. 1.
  2. 2.
  3. 3.

Solution: sending instructions in the Response Body

How it works: a look under the hood

// Instruction to send a pixel to set a cookie via the sGTM endpoint event: message data: {"send_pixel":["${transport_url}/_/set_cookie?val=[...]&path=${encoded_path}"]} // Instruction to send a pixel to a Google domain for third-party cookie syncing event: message data: {"send_pixel":["https://googleads.g.doubleclick.net/pagead/viewthroughconversion/[...]","fallback_url_method":"fetch"}} // Instruction to send a pixel to a Google domain for third-party cookie syncing event: message data: {"send_pixel":["https://www.google.com.br/ads/ga-audiences?v=1&t=sr&slf_rd=1&_r=4&dma=0&[...]"],"options":{}} // Instruction to send a pixel to a Google domain for third-party cookie syncing event: message data: {"send_pixel":["https://ad.doubleclick.net/activity;register_conversion=1;[...]"],"options":{"attribution_reporting":true}} // The final response message event: message data: {"response":{"status_code":200,"body":""}}

Real-life demonstration

GA4 Tag event without richsstsse flag

GA4 Tag event with richsstsse flag

Stape Data Tag event without richsstsse flag

Stape Data Tag event with richsstsse flag

Important technical details

Incoming request contains the richsstsse flag

Incoming request contains the richsstsse flag, but sendPixelFromBrowser is not called; or Incoming request doesn't contain the richsstsse flag

Other miscellaneous finding

Which tags trigger this behavior?

Is this a problem? Impact and management

They are normal and expected behavior in sGTM. They are not an error or a problem.

Conclusion

Want to switch to the server side?

Try for free

Written by

Giovani Ortolani Barbosa

Content writer

Giovani Ortolani Barbosa is an Integration Engineer at Stape who develops advanced Google Tag Manager templates, troubleshoots complex tracking issues, and specializes in server-side tagging.

Was this article helpful?

Comments

Turn better tracking into better marketing performance

Try for free