{"id":3875,"date":"2025-04-29T10:20:09","date_gmt":"2025-04-29T08:20:09","guid":{"rendered":"https:\/\/trackboxx.com\/?post_type=glossar&#038;p=3875"},"modified":"2025-04-29T10:20:09","modified_gmt":"2025-04-29T08:20:09","slug":"gtag-js-global-site-tag","status":"publish","type":"glossar","link":"https:\/\/trackboxx.com\/en\/glossar\/gtag-js-global-site-tag\/","title":{"rendered":"gtag.js (Global Site Tag)"},"content":{"rendered":"<p><strong>gtag.js<\/strong> (Global Site Tag) is a JavaScript library from Google that is used to easily integrate and control various Google services on a website - in particular for Google Analytics, Google Ads and other marketing and analysis tools.<\/p>\n\n\n\n<p>With gtag.js, a standardised tracking code is provided that records events, page views and <a href=\"https:\/\/trackboxx.com\/en\/glossary\/conversion\/\" data-type=\"glossar\" data-id=\"3825\">Conversions <\/a>recorded centrally. Website operators can thus define interactions directly in the code without having to integrate several separate tracking scripts.<\/p>\n\n\n\n<p>Typical functions of gtag.js:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Recording of page views<\/li>\n\n\n\n<li>Sending customised <a href=\"https:\/\/trackboxx.com\/en\/glossary\/event-tracking\/\" data-type=\"glossar\" data-id=\"3869\">Events<\/a> (e.g. clicks, downloads)<\/li>\n\n\n\n<li>Setting up <a href=\"https:\/\/trackboxx.com\/en\/conversion-tracking-explanation-options\/\" data-type=\"post\" data-id=\"3587\">Conversion tracking<\/a><\/li>\n\n\n\n<li>Link multiple Google services via a single code snippet<\/li>\n<\/ul>\n\n\n\n<p>gtag.js is the recommended implementation method for newer Google services and replaces older libraries such as analytics.js or the classic Google Ads conversion tags.<\/p>\n\n\n\n<p>Note: As an alternative to the direct integration of gtag.js, the <a href=\"https:\/\/trackboxx.com\/en\/glossary\/google-tag-manager-gtm\/\" data-type=\"glossar\" data-id=\"3873\">Google Tag Manager<\/a> which offers additional flexibility in tag management.<\/p>","protected":false},"featured_media":0,"template":"","categories":[],"tags":[],"class_list":["post-3875","glossar","type-glossar","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/glossar\/3875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/glossar"}],"about":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/types\/glossar"}],"version-history":[{"count":0,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/glossar\/3875\/revisions"}],"wp:attachment":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/media?parent=3875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/categories?post=3875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/tags?post=3875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}