{"id":243952,"date":"2025-09-03T09:25:51","date_gmt":"2025-09-03T09:25:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wpac-ga-analytics\/"},"modified":"2025-12-09T06:02:57","modified_gmt":"2025-12-09T06:02:57","slug":"wpac-integration-for-google-analytics","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/wpac-integration-for-google-analytics\/","author":23335992,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.4","stable_tag":"1.1.4","tested":"6.8.5","requires":"5.0","requires_php":"8.0","requires_plugins":null,"header_name":"WPAC Integration for Google Analytics","header_author":"WP Agency Care","header_description":"Easy, privacy-friendly integration for Google Analytics (Universal, GA4, and Global Site Tag) in WordPress.","assets_banners_color":"ed5121","last_updated":"2025-12-09 06:02:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wpagencycare.com\/wpac-integration-for-google-analytics","header_author_uri":"https:\/\/wpagencycare.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":432,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.3":{"tag":"1.1.3","author":"wpagencycare","date":"2025-12-09 06:02:57"},"1.1.4":{"tag":"1.1.4","author":"wpagencycare","date":"2025-12-09 06:02:57"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3355247,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3355245,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3355244,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.3","1.1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3355234,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3355237,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"The settings page.","2":"The setup guide."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[193472,1005,148467,550,7183],"plugin_category":[36],"plugin_contributors":[247316],"plugin_business_model":[],"class_list":["post-243952","plugin","type-plugin","status-publish","hentry","plugin_tags-ga4","plugin_tags-google-analytics","plugin_tags-gtag","plugin_tags-tracking","plugin_tags-universal-analytics","plugin_category-analytics","plugin_contributors-wpagencycare","plugin_committers-wpagencycare"],"banners":{"banner":"https:\/\/ps.w.org\/wpac-integration-for-google-analytics\/assets\/banner-772x250.jpg?rev=3355244","banner_2x":"https:\/\/ps.w.org\/wpac-integration-for-google-analytics\/assets\/banner-1544x500.jpg?rev=3355245","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wpac-integration-for-google-analytics\/assets\/icon-128x128.png?rev=3355247","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wpac-integration-for-google-analytics\/assets\/screenshot-1.png?rev=3355234","caption":"The settings page."},{"src":"https:\/\/ps.w.org\/wpac-integration-for-google-analytics\/assets\/screenshot-2.png?rev=3355237","caption":"The setup guide."}],"raw_content":"<!--section=description-->\n<p>This plugin provides a simple and lightweight solution to add Google Analytics tracking to your WordPress website. It supports both Universal Analytics (analytics.js and gtag.js) and the latest Google Analytics 4 (GA4).<\/p>\n\n<p>Key Features:\n*   Easy setup with your Tracking ID.\n*   Supports Universal Analytics (UA) and Google Analytics 4 (GA4).\n*   Choice between analytics.js and gtag.js for Universal Analytics.\n*   Option to place tracking code in the header or footer.\n*   Simple, no-frills interface.\n*   Lightweight and performant.\n*   Fully compliant with WordPress Coding Standards.\n*   Enhanced security with proper input sanitization and output escaping.\n*   Tracking ID validation for GA4 and Universal Analytics formats.\n*   Modern PHP 8.0+ code with type declarations.<\/p>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to Google Analytics and Google Tag Manager services to provide website analytics tracking functionality.<\/p>\n\n<p><strong>Google Analytics (analytics.google.com):<\/strong>\n* <strong>What it is used for:<\/strong> Website analytics and visitor tracking\n* <strong>What data is sent:<\/strong> Page views, user interactions, and website usage statistics\n* <strong>When data is sent:<\/strong> Every time a visitor loads a page on your website\n* <strong>Terms of Service:<\/strong> <a href=\"https:\/\/marketingplatform.google.com\/about\/analytics\/terms\/\">Google Analytics Terms of Service<\/a>\n* <strong>Privacy Policy:<\/strong> <a href=\"https:\/\/policies.google.com\/privacy\">Google Privacy Policy<\/a><\/p>\n\n<p><strong>Google Tag Manager (googletagmanager.com):<\/strong>\n* <strong>What it is used for:<\/strong> Loading Google Analytics tracking code and managing tags\n* <strong>What data is sent:<\/strong> Page load requests to load the tracking script\n* <strong>When data is sent:<\/strong> Every time a visitor loads a page on your website\n* <strong>Terms of Service:<\/strong> <a href=\"https:\/\/developers.google.com\/tag-manager\/terms\">Google Tag Manager Terms of Service<\/a>\n* <strong>Privacy Policy:<\/strong> <a href=\"https:\/\/policies.google.com\/privacy\">Google Privacy Policy<\/a><\/p>\n\n<p><strong>Note:<\/strong> This plugin only sends data to Google services when tracking is enabled in the plugin settings. Users can disable tracking at any time through the WordPress admin panel.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>wpac-integration-for-google-analytics<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to 'WPAC Integration for Google Analytics' -&gt; 'WPAC Setup' in your WordPress admin menu.<\/li>\n<li>Enter your Google Analytics Tracking ID, choose your settings, and save.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20find%20my%20google%20analytics%20tracking%20id%3F'><h3>How do I find my Google Analytics Tracking ID?<\/h3><\/dt>\n<dd><p>We have included a setup guide in the plugin. Navigate to 'WPAC Integration for Google Analytics' -&gt; 'Setup Guide' in your WordPress admin for a step-by-step tutorial on how to find your Tracking ID.<\/p><\/dd>\n<dt id='does%20this%20plugin%20support%20ga4%3F'><h3>Does this plugin support GA4?<\/h3><\/dt>\n<dd><p>Yes, it supports GA4, as well as Universal Analytics (gtag.js and analytics.js). You can select your preferred method in the plugin settings.<\/p><\/dd>\n<dt id='where%20is%20the%20tracking%20code%20placed%3F'><h3>Where is the tracking code placed?<\/h3><\/dt>\n<dd><p>You can choose to place the tracking code in the website's <code>&lt;head&gt;<\/code> section or in the footer, just before the closing <code>&lt;\/body&gt;<\/code> tag. This can be configured in the plugin settings.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Major code refactoring and modernization:\n\n<ul>\n<li>Updated to PHP 8.0+ with full type declarations and modern syntax.<\/li>\n<li>Enhanced security with comprehensive input sanitization and output escaping.<\/li>\n<li>Fixed Analytics.js script loading issue.<\/li>\n<li>Added tracking ID format validation (GA4 and Universal Analytics).<\/li>\n<li>Improved performance with optimized script enqueuing.<\/li>\n<li>Full WordPress Coding Standards compliance.<\/li>\n<li>Added proper internationalization support.<\/li>\n<li>Enhanced error handling and activation checks.<\/li>\n<li>Improved code organization and maintainability.<\/li>\n<\/ul><\/li>\n<li>Branding, prefix, and compliance updates for WordPress.org review.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Initial release as WPAC Integration for Google Analytics (formerly WPAC GA Analytics).<\/li>\n<\/ul>","raw_excerpt":"Simple and effective Google Analytics integration for WordPress with Universal Analytics, GA4, and flexible code placement.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/243952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=243952"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpagencycare"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=243952"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=243952"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=243952"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=243952"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=243952"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=243952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}