{"id":79023,"date":"2017-12-15T06:06:15","date_gmt":"2017-12-15T06:06:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-global-site-tag\/"},"modified":"2025-05-02T02:23:04","modified_gmt":"2025-05-02T02:23:04","slug":"wp-global-site-tag","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wp-global-site-tag\/","author":15679171,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.7","stable_tag":"trunk","tested":"6.8.5","requires":"3.0.1","requires_php":"","requires_plugins":null,"header_name":"WP Global Site Tag","header_author":"Digital Apps","header_description":"This is a short description of what the plugin does. It's displayed in the WordPress admin area.","assets_banners_color":"e2c05b","last_updated":"2025-05-02 02:23:04","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.buymeacoffee.com\/wpplugins","header_plugin_uri":"https:\/\/digitalapps.com\/wp-global-site-tag\/","header_author_uri":"https:\/\/digitalapps.com","rating":5,"author_block_rating":0,"active_installs":8000,"downloads":72082,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"digitalapps","date":"2018-03-01 23:10:04"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1804841,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1804841,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1804845,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1804845,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1787460,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1787460,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1990300,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Paste your Tracking ID and you are set to go","2":"Advanced editor for those who need it"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[151721,1005,23294,23295],"plugin_category":[36],"plugin_contributors":[150144],"plugin_business_model":[],"class_list":["post-79023","plugin","type-plugin","status-publish","hentry","plugin_tags-global-site-tag","plugin_tags-google-analytics","plugin_tags-google-tag-manager","plugin_tags-gtm","plugin_category-analytics","plugin_contributors-digitalapps","plugin_committers-digitalapps"],"banners":{"banner":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/banner-772x250.png?rev=1804845","banner_2x":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/banner-1544x500.png?rev=1804845","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/icon-128x128.png?rev=1804841","icon_2x":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/icon-256x256.png?rev=1804841","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/screenshot-1.png?rev=1787460","caption":"Paste your Tracking ID and you are set to go"},{"src":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/screenshot-2.png?rev=1787460","caption":"Advanced editor for those who need it"},{"src":"https:\/\/ps.w.org\/wp-global-site-tag\/assets\/screenshot-3.png?rev=1990300","caption":""}],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/digitalapps.com\/wordpress-plugins\/wp-global-site-tag\/\" title=\"WP Global Site Tag\">Global Site Tag<\/a> (gtag.js) is a new Google Analytics replacement. WP Global Site Tag provides a framework for streamlined web page tagging \u2013 giving you better control while making implementation easier. Using gtag.js lets you benefit from the latest tracking features and integrations as they become available. This is the WordPress version.<\/p>\n\n<p>To use gtag.js to track your site, install the plugin and activate.<\/p>\n\n<ul>\n    <li>Simple to install and use even your clients can do it<\/li>\n    <li>Configure multiple Google Analytics properties<\/li>\n    <li>Minified version of the code is injected for faster loading times<\/li>\n    <li>Built using WordPress best practices and standards<\/li>\n    <li>Great for marketing agencies and individuals<\/li>\n<\/ul>\n\n<h3>Supercharge Your GTM Setup with gtag<\/h3>\n\n<p>Wondering if you can make the most of gtag and set up Google Tag Manager (GTM) simultaneously? Heck yeah, you can!<\/p>\n\n<p>Setting up GTM with gtag is a breeze. Just swap out that initial GA_TRACKING_ID with your GTM container ID, and you're good to go. You can still keep the universal analytics tag running smoothly within GTM, all while having gtag in the mix.<\/p>\n\n<h3>How to use Global Site Tag<\/h3>\n\n<p>To use gtag.js to track your site, install the plugin. Replace GA_TRACKING_ID with the tracking ID of the Google Analytics property you want to send data to.<\/p>\n\n<h3>Why use Global Site Tag<\/h3>\n\n<p>Global Site Tag streamlines tracking across all Google products, including their measurement, conversion tracking, and remarketing products. Global Site Tag is the new replacement for old Google Analytics script.<\/p>\n\n<h3>Difference between Universal Analytics &amp; Global Site Tag<\/h3>\n\n<p>There are few differences you need to know before thinking of migrating to Global Site Tag.<\/p>\n\n<p>Install:\nUniversal Analytics(analytics.js) is only used for installing Google Analytics, and global tag can be used to install multiple tools like, GA and GTM.<\/p>\n\n<p>Tracking:\nUniversal Analytics uses trackers(ga(\u2018create\u2019, \u2018G-XXXXX-Y\u2019, \u2018auto\u2019);) to send pageviews to Google Analytics while gtag send pageviews to GA property identified by the GA_Tracking_ID(gtag(\u2018config\u2019,\u2019GA_Tracking_ID\u2019)).<\/p>\n\n<p>Use:\nGlobal Site Tag can be used for conversion tracking and remarketing while universal analytics can\u2019t.<\/p>\n\n<!--section=installation-->\n<p>Follow these steps to install the plugin on your site.<\/p>\n\n<ol>\n<li>Upload <code>wp-global-site-tag<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Release<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Testing on WordPress 5.0. Version number bump.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Added settings hyperlink to the plugins page.<\/li>\n<li>Move settings page under Settings.<\/li>\n<li>Add update\/install handlers.<\/li>\n<li>Add new screenshot.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Updated label<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Added mime type<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>remove warning message<\/li>\n<\/ul>","raw_excerpt":"Global Site Tag (gtag.js) is a new Google Analytics replacement \u2013 giving you better control while making implementation easier. Using gtag.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/79023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=79023"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/digitalapps"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=79023"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=79023"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=79023"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=79023"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=79023"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=79023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}