{"id":42695,"date":"2016-03-21T02:31:40","date_gmt":"2016-03-21T02:31:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/smntcs-google-analytics\/"},"modified":"2026-09-27T08:56:36","modified_gmt":"2026-09-27T08:56:36","slug":"smntcs-google-analytics","status":"publish","type":"plugin","link":"https:\/\/pcm.wordpress.org\/plugins\/smntcs-google-analytics\/","author":14617105,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.3","stable_tag":"3.3","tested":"7.1.2","requires":"5.5","requires_php":"7.4","requires_plugins":null,"header_name":"SMNTCS Google Analytics","header_author":"Niels Lange","header_description":"","assets_banners_color":"6b94ab","last_updated":"2026-09-27 08:56:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/nielslange\/smntcs-google-analytics\/","header_author_uri":"https:\/\/nielslange.de","rating":5,"author_block_rating":0,"active_installs":100,"downloads":7914,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"nielslange","date":"2019-02-20 11:37:58","revision":2035005},"1.1":{"tag":"1.1","author":"nielslange","date":"2019-02-20 11:37:58","revision":2035005},"1.2":{"tag":"1.2","author":"nielslange","date":"2019-02-20 11:37:58","revision":2035005},"1.3":{"tag":"1.3","author":"nielslange","date":"2019-02-20 11:37:58","revision":2035005},"1.4":{"tag":"1.4","author":"nielslange","date":"2019-02-20 11:37:58","revision":2035005},"2.0":{"tag":"2.0","author":"nielslange","date":"2019-02-20 11:36:33","revision":2035003},"2.1":{"tag":"2.1","author":"nielslange","date":"2019-02-20 11:36:33","revision":2035003},"2.2":{"tag":"2.2","author":"nielslange","date":"2019-02-20 11:39:29","revision":2035006},"2.3":{"tag":"2.3","author":"nielslange","date":"2019-06-28 14:06:13","revision":2114255},"2.4":{"tag":"2.4","author":"nielslange","date":"2019-12-21 05:09:47","revision":2216151},"2.5":{"tag":"2.5","author":"nielslange","date":"2021-04-27 12:09:58","revision":2522065},"2.6":{"tag":"2.6","author":"nielslange","date":"2021-12-19 11:12:56","revision":2646382},"2.7":{"tag":"2.7","author":"nielslange","date":"2022-05-08 20:13:53","revision":2720257},"2.8":{"tag":"2.8","author":"nielslange","date":"2022-12-03 04:32:27","revision":2828026},"2.9":{"tag":"2.9","author":"nielslange","date":"2023-10-15 06:21:51","revision":2979125},"3.1":{"tag":"3.1","author":"nielslange","date":"2024-12-31 04:04:51","revision":3215080},"3.3":{"tag":"3.3","author":"nielslange","date":"2026-09-27 08:56:36","revision":3715183}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3715183,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3715183,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3715183,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","3.1","3.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3715183,"resolution":"1","location":"assets","locale":"","width":1200,"height":900}},"screenshots":{"1":"Paste your Google Analytics tracking code in the customizer"}},"plugin_section":[],"plugin_tags":[232,1005,148467,521,550],"plugin_category":[36],"plugin_contributors":[83824],"plugin_business_model":[],"class_list":["post-42695","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-google-analytics","plugin_tags-gtag","plugin_tags-statistics","plugin_tags-tracking","plugin_category-analytics","plugin_contributors-nielslange","plugin_committers-nielslange","plugin_support_reps-nielslange"],"banners":{"banner":"https:\/\/ps.w.org\/smntcs-google-analytics\/assets\/banner-772x250.png?rev=3715183","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/smntcs-google-analytics\/assets\/icon-128x128.png?rev=3715183","icon_2x":"https:\/\/ps.w.org\/smntcs-google-analytics\/assets\/icon-256x256.png?rev=3715183","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/smntcs-google-analytics\/assets\/screenshot-1.png?rev=3715183","caption":"Paste your Google Analytics tracking code in the customizer"}],"raw_content":"<!--section=description-->\n<p>SMNTCS Google Analytics adds <a href=\"https:\/\/analytics.google.com\/\">Google Analytics<\/a> tracking to every page of your site.<\/p>\n\n<p>In the Customizer you can either enter your measurement ID, for example <code>G-XXXXXXXXXX<\/code>, or paste the full tracking code that Google Analytics gives you. When you enter an ID, the plugin loads the official gtag.js script for you.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Enter a GA4 measurement ID or paste the full tracking code<\/li>\n<li>Loads gtag.js asynchronously so it does not slow down your pages<\/li>\n<li>Optional IP anonymisation<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>smntcs-google-analytics<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<li>Go to https:\/\/www.google.com\/analytics\/, add a new site and copy the tracking code<\/li>\n<li>Go to <code>Appearance \u2192 Customize \u2192 Google Analytics<\/code> and paste your tracking code<\/li>\n<li>Anonymize visitors IP address if necessary<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"why%20am%20i%20not%20able%20to%20save%20the%20verification%20code%3F\"><h3>Why am I not able to save the verification code?<\/h3><\/dt>\n<dd><p>This issue might be caused by a security plugin. If you use a security plugin, e.g. Wordfence, then disable it to save your verification code and activate it once you\u2019re done.<\/p><\/dd>\n<dt id=\"where%20do%20i%20find%20my%20measurement%20id%3F\"><h3>Where do I find my measurement ID?<\/h3><\/dt>\n<dd><p>In Google Analytics, go to Admin, then Data streams, and open your web stream. The measurement ID starts with G-.<\/p><\/dd>\n<dt id=\"why%20am%20i%20not%20able%20to%20save%20the%20tracking%20code%3F\"><h3>Why am I not able to save the tracking code?<\/h3><\/dt>\n<dd><p>A security plugin such as Wordfence may block script code in the Customizer. Enter only your measurement ID instead, or pause the security plugin while you save.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.3 (2026.09.27)<\/h4>\n\n<ul>\n<li>Remove duplicated FAQ entries from the readme<\/li>\n<\/ul>\n\n<h4>3.2 (2026.09.26)<\/h4>\n\n<ul>\n<li>Test up to WordPress 7.1<\/li>\n<li>Update development dependencies and GitHub Actions<\/li>\n<li>Accept a measurement ID such as G-XXXXXXXXXX and load gtag.js for it, instead of printing the ID on the page<\/li>\n<\/ul>\n\n<h4>3.1 (2023.10.30)<\/h4>\n\n<ul>\n<li>Test up to WordPress 6.7<\/li>\n<\/ul>\n\n<h4>3.0 (2023.10.22)<\/h4>\n\n<ul>\n<li>Test up to WordPress 6.6<\/li>\n<li>Migrate from Cypress to Playwright<\/li>\n<\/ul>\n\n<h4>2.9 (2023.10.15)<\/h4>\n\n<ul>\n<li>Test up to WordPress 6.4<\/li>\n<\/ul>\n\n<h4>2.8 (2022.12.03)<\/h4>\n\n<ul>\n<li>Test up to WordPress 6.1<\/li>\n<\/ul>\n\n<h4>2.7 (2022.05.09)<\/h4>\n\n<ul>\n<li>Test up to WordPress 6.0<\/li>\n<\/ul>\n\n<h4>2.6 (2021.04.27)<\/h4>\n\n<ul>\n<li>Test up to WordPress 5.8<\/li>\n<li><a href=\"https:\/\/github.com\/nielslange\/smntcs-google-analytics\/issues\/2\">Add e2e tests<\/a><\/li>\n<\/ul>\n\n<h4>2.5 (2021.04.27)<\/h4>\n\n<ul>\n<li>Test up to WordPress 5.7<\/li>\n<li><a href=\"https:\/\/github.com\/nielslange\/smntcs-google-analytics\/issues\/9\">Add build tools<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nielslange\/smntcs-google-analytics\/issues\/10\">Add GitHub Actions<\/a><\/li>\n<\/ul>\n\n<h4>2.4 (2019.12.21)<\/h4>\n\n<ul>\n<li>Test up to WordPress 5.3<\/li>\n<li>Add build tools<\/li>\n<\/ul>\n\n<h4>2.3 (2019.06.28)<\/h4>\n\n<ul>\n<li>Test up to WordPress 5.2<\/li>\n<\/ul>\n\n<h4>2.2 (2019.06.28)<\/h4>\n\n<ul>\n<li>Test up to WordPress 5.1<\/li>\n<\/ul>\n\n<h4>2.1 (2016.12.24)<\/h4>\n\n<ul>\n<li>Add FAQ<\/li>\n<\/ul>\n\n<h4>2.0 (2016.09.11)<\/h4>\n\n<ul>\n<li>Use Customizer instead of options page<\/li>\n<\/ul>\n\n<h4>1.4 (2016.07.20)<\/h4>\n\n<ul>\n<li>Add donation link<\/li>\n<\/ul>\n\n<h4>1.3 (2016.07.20)<\/h4>\n\n<ul>\n<li>Update textdomain<\/li>\n<\/ul>\n\n<h4>1.2 (2016.07.20)<\/h4>\n\n<ul>\n<li>Fix tracking code visibility<\/li>\n<\/ul>\n\n<h4>1.1 (2016.07.20)<\/h4>\n\n<ul>\n<li>Fix plugin title<\/li>\n<\/ul>\n\n<h4>1.0 (2016.07.20)<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Adds Google Analytics to your site with just your measurement ID or the full tracking code, plus optional IP anonymisation.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42695"}],"author":[{"embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nielslange"}],"wp:attachment":[{"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42695"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42695"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42695"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42695"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42695"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcm.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}