Google tag (gtag.js) (google/googletagmanager-gtag
)
operated by: Google LLC
(get company information on datarequests.org)Google tag (gtag.js) is a single script that publishers can add to their website to include and use multiple Google measurement and advertising products like Google Ads, Google Analytics, Campaign Manager, Display & Video 360, and Search Ads 360.
Google advertises that the Google tag can be used for example to “[a]utomatically measure page views, clicks, scrolls, and more in Google Analytics” and “[a]utomatically measure key events and campaign performance in Google Ads”.
Endpoint URLs
These are URLs or regexes of endpoints the tracker sends data to. We use these to determine which adapter to apply to a request. Some trackers use the same endpoint for several formats. In this case we use additional logic to match the adapter to the request, refer to the code for more information.https://www.googletagmanager.com/gtag/js
https://www.googletagmanager.com/gtag/destination
Decoding steps
Every tracking library has its own way of transmitting tracking data, often even several. They are regularly pretty convoluted, nested encoding schemes. Because of that, the adapter needs to decode the request information into a consistent format. We try to keep keys and paths intact, but the structure results from our decoding. All steps used in the decoding for this adapter are documented here.- Parse the query string in the request path as a query string. Store that in the result for the query string.
- Get the property at JSONPath
$
in the request headers. Store that in the result for the request headers.
1res.query = parseQueryString(query)
2res.header = header.$
Observed data transmissions
This is data that we observed being transmitted by this tracker. Not every request contains all of this data. The context of the data describes where we found the data in the request, the path describes the location of the data in the decoded request. The examples are a selection of observed values.References
- Documentation for
id
: https://support.google.com/tagmanager/answer/12326985