Google tag (gtag.js)

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. Source

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”. Source

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.
  1. Parse the query string in the request path as a query string. Store that in the result for the query string.
  2. 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.
PropertyContextPathExamples of observed values
App IDheaderx-requested-withde.lachanfall.android
com.supercode.lothott
in.animall.android
dating.inmessage.net
com.greenvest.neobet
ID for the property (website/app)queryid Tracker documentation on this propertyG-G6K6QREB8P
AW-923472557
UA-146404968-1
AW-689702283
G-M9FDSR64LQ
Refererheaderrefererhttps://lachanfall.co/feed?clep_push_handler=androidNotificationHandler
https://date.deinseitensprung.com/landing/md8000?pid=6034-02CA4&zz=true&isAffiliate=true&sub=3990&spub_id=12008&tag=bd0db7f4-ba48-4d19-bbbf-749eb355765e&hit_id=bd0db7f4-ba48-4d19-bbbf-749eb355765e&tp_redirect_id=bd0db7f4-ba48-4d19-bbbf-749eb355765e
https://animall.in/?platform=android&appVer=1.7.4
https://www.inmessage.net/mobile/
https://marcophono.com/
headerRefererhttps://lachanfall.co/feed?clep_push_handler=androidNotificationHandler
https://date.deinseitensprung.com/landing/md8000?pid=6034-02CA4&zz=true&isAffiliate=true&sub=3990&spub_id=12008&tag=bd0db7f4-ba48-4d19-bbbf-749eb355765e&hit_id=bd0db7f4-ba48-4d19-bbbf-749eb355765e&tp_redirect_id=bd0db7f4-ba48-4d19-bbbf-749eb355765e
https://animall.in/?platform=android&appVer=1.7.4
https://www.inmessage.net/mobile/
https://marcophono.com/
References