Title: URL Content Mapper
Author: Wajahat Mubashir
Published: <strong>2025 年 2 月 11 日</strong>
Last modified: 2025 年 12 月 17 日

---

搜尋外掛

![](https://ps.w.org/url-content-mapper/assets/banner-772x250.png?rev=3239186)

![](https://ps.w.org/url-content-mapper/assets/icon-256x256.png?rev=3239186)

# URL Content Mapper

 由 [Wajahat Mubashir](https://profiles.wordpress.org/wajahatmubashir/) 開發

[下載](https://downloads.wordpress.org/plugin/url-content-mapper.1.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/url-content-mapper/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/url-content-mapper/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/url-content-mapper/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/url-content-mapper/#developers)

 [技術支援](https://wordpress.org/support/plugin/url-content-mapper/)

## 外掛說明

URL Content Mapper dynamically adds content groups in Google Analytics 4 and injects
code before GA4 or Google Tag Manager scripts in the `<head>` tag of your WordPress
site. This allows you to better organize and track user activity, ensuring that 
your analytics data is both accurate and comprehensive.

## 安裝方式

 1. **Upload the plugin files** to the `/wp-content/plugins/wp-url-content-mapper/`
    directory, or install the plugin through the WordPress plugins screen directly 
    by uploading the zip file.
 2. **Activate the plugin** through the ‘Plugins’ screen in WordPress.
 3. **Navigate to Settings**  **URL Content Mapper** to configure the plugin.
 4. Once configured, the plugin automatically injects your custom code before GA4/GTM
    scripts on every page load.

## 常見問題集

### Does this plugin work with both GA4 and GTM?

Yes. It injects a script responsible for creating content groups before GA4 or GTM
scripts, allowing you to set content groups more effectively.

### Will it slow down my site?

This plugin adds a minimal amount of code, so the impact on performance should be
negligible. However, always test thoroughly on your environment.

### Where can I find the plugin settings?

After activation, go to **Settings**  **URL Content Mapper** in your WordPress Admin
panel.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈URL Content Mapper〉的開發相關工作。

參與者

 *   [ Wajahat Mubashir ](https://profiles.wordpress.org/wajahatmubashir/)

[將〈URL Content Mapper〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/url-content-mapper)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/url-content-mapper/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/url-content-mapper/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/url-content-mapper/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/url-content-mapper/)。

## 變更記錄

#### 1.4

 * Improved content grouping for better organization

#### 1.3

 * CRITICAL FIX: Removed DOMContentLoaded wrapper to fix GA4 timing issues
 * CRITICAL FIX: Script now loads in HEAD instead of footer for proper execution
   order
 * Fixed URL pattern matching to use pathname instead of full href
 * Improved query parameter handling for patterns like /?wizard=true
 * Fixed sanitization to preserve relative URL patterns like /products/
 * Removed duplicate script enqueuing for better performance
 * Added “pushed once” logic to prevent multiple category assignments
 * WordPress.org compliance improvements
 * Better documentation and code comments

#### 1.2

 * Added import/export functionality for easy settings backup and migration
 * Enhanced admin interface with better user experience
 * Added file validation and error handling for imports
 * Improved security with WordPress nonces and capability checks

#### 1.1

 * Improved content group mapping logic

#### 1.0

 * Initial release: Adds the capability to inject code before GA4/GTM scripts and
   configure content groups.

## 中繼資料

 *  版本 **1.4**
 *  最後更新 **5 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/url-content-mapper/)
 * 標籤:
 * [analytics](https://tw.wordpress.org/plugins/tags/analytics/)[ga4](https://tw.wordpress.org/plugins/tags/ga4/)
   [google tag manager](https://tw.wordpress.org/plugins/tags/google-tag-manager/)
 *  [進階檢視](https://tw.wordpress.org/plugins/url-content-mapper/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/url-content-mapper/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/url-content-mapper/reviews/)

## 參與者

 *   [ Wajahat Mubashir ](https://profiles.wordpress.org/wajahatmubashir/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/url-content-mapper/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://wajahatmubashir.netlify.app/)