Replies: 1 comment
-
This is already made into a PR: #81011 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Google Tag Manager and Google Analytics have this feature called Google Tag Gateway for Advertisers which would allow a reverse proxy setup for using first-party infrastructure to send data to those services.
Currently
@next/third-parties/google
doesn't support this feature because agtmId
is required as a parameter for making it work. After testing it's confirmed that this field is breaking the GTM usage when running the first-party proxy due to the url param appended to the url?id=
Non-Goals
Won't implement a full reverse proxy, this is an easy feature that developers can do themselves as they see fit, as it doesn't need to be done necessarily from inside NextJS, but also at network level
Background
As documented in: https://developers.google.com/tag-platform/tag-manager/gateway/setup-guide?setup=manual
Proposal
A simple patch to change the parameters to make
gtmId
as an optional prop andgtmScriptUrl
required ifgtmId
is missing.Beta Was this translation helpful? Give feedback.
All reactions