Integrate GA4 Google Analytics

外掛說明

The “Integrate GA4 Google Analytics” plugin is a simple, lightweight, and fast plugin that enables Google Analytics tracking for your WordPress site. It supports Google Analytics 4, and allows you to easily integrate the latest Google Analytics code into your site properly.

Simple to Use

To use the plugin, simply enter your GA4 Measurement ID into the plugin settings page. Press the “Save Changes” button. Once the GA4 Measurement ID is entered, the plugin will insert the appropriate script into your site, allowing Google Analytics to access user activity on the site. It’s important to note that it can take up to 24-48 hours after adding your GA4 ID before any analytical data appears in your Google Analytics account.

Automatic Installation

  • Login to your WordPress Dashboard.
  • Visit Plugins > Add New.
  • Search for Integrate GA4 Google Analytics.
  • Install and activate the Integrate GA4 Google Analytics plugin.

Manual installation

  • Upload the entire integrate-ga4-google-analytics folder to the /wp-content/plugins/ directory.
  • Visit Plugins.
  • Activate the Integrate GA4 Google Analytics plugin.

Other Projects

I also have other plugins that might interest you.

Super Custom Login

The Super Custom Login plugin offers customization options for the WordPress login screen, including the ability to replace the default WordPress logo with a custom logo that links to the user’s homepage. There are custom color settings for all elements on login page. Additionally, the plugin improves login security by removing error messages upon failed login attempts.

螢幕擷圖

  • Enter your Google Analytics GA4 Measurement ID on the Settings page

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Integrate GA4 Google Analytics〉的開發相關工作。

參與者

將〈Integrate GA4 Google Analytics〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2

  • Update tags and description in readme file. 06/09/2023
  • Update plugin short description. 06/09/2023
  • Add instructions on how to find GA4 Measurement ID. 06/09/2023

1.1

  • Update readme file. 04/13/2023
  • Update screenshot image. 04/13/2023
  • Retain plugin data upon Plugin deactivation. Remove plugin data upon Plugin uninstall. 04/13/2023
  • Escape all output. 04/13/2023
  • Use wp_add_inline_script to insert GA4 tracking script. 04/12/2023
  • Use wp_enqueue_script to link to Google Tag Manager. 04/12/2023
  • Validate the input. If empty, give error. If formatted incorrectly, give error. 04/12/2023
  • Reformat the code to be easier to read. 04/12/2023
  • Remove redundancies. 04/11/2023
  • Sanitize input. 04/11/2023
  • Submit plugin to official WordPress plugin directory. 04/07/2023
  • Create banner. Create icon. 04/07/2023
  • Test plugin with WordPress 6.2. 04/07/2023
  • Update readme file. 04/07/2023
  • Update plugin description. 04/07/2023
  • Add section header and additional instructions. 04/07/2023
  • Define settings page with one input, type text for the GA4 ID. Also a Save Changes button. 04/07/2023
  • Register settings and sanitize the inputs for security. 04/07/2023
  • Add link to the settings page in the plugin list. 04/07/2023
  • Add custom settings page to WordPress Dashboard under the Settings submenu. 04/07/2023
  • Add code to abort if the plugin file is called directly, as a security measure. 04/07/2023

1.0

  • Update plugin description. 05/29/2017
  • Create readme file. 05/29/2017
  • Create plugin file. Requires the user to manually install and manually add tracking script to plugin file. 05/29/2017