[WordPress] 外掛分享: Scripts + Pixels DataLayer Manager

首頁外掛目錄 › Scripts + Pixels DataLayer Manager
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.0 上架:2026-03-18

內容簡介

Scripts + Pixels DataLayer Manager 外掛自動為您的 WordPress 網站創建和管理 dataLayer 物件,該物件包含有關頁面、文章、產品及用戶互動的結構化數據,方便用於 Google Tag Manager 和 Google Analytics 4 等分析工具。

【主要功能】
• 自動檢測頁面類型及文章數據
• 支援 WooCommerce 產品數據及購物車資訊
• 零配置,開箱即用
• 符合 WordPress 編碼標準
• 開發者友好,有良好文檔

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Scripts + Pixels DataLayer Manager」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Scripts + Pixels DataLayer Manager automatically creates and manages a dataLayer object for your WordPress site. This object contains structured data about your pages, posts, products, and user interactions that can be used by analytics tools like Google Tag Manager (GTM) and Google Analytics 4 (GA4).
No coding required! The plugin automatically detects WordPress and WooCommerce data and injects it into the dataLayer on every page.
Key Features

Automatic Detection – Automatically detects page type, post data, categories, tags, and more
WooCommerce Support – Detects product data, pricing, cart information, and checkout details
Zero Configuration – Works out of the box with no setup required
Clean Code – Follows WordPress coding standards and best practices
Developer Friendly – Well-documented code and extensible hooks

How It Works

Install and activate the plugin
Visit any page on your website
Open browser Developer Tools (F12)
Type dataLayer in the console
See all automatically detected variables!

WordPress Variables
The plugin automatically detects and injects variables like:

pageType – Type of page (post, page, category, tag, archive, search, 404, etc.)
postId – Post/Page ID
postTitle – Post/Page title
postAuthor – Author name
postCategory – Post categories
postTags – Post tags
isLoggedIn – Whether user is logged in
siteName – Site name
siteUrl – Site URL
And more…

WooCommerce Variables
When WooCommerce is active, additional variables are automatically detected:

productId – Product ID
productName – Product name
productPrice – Product price
productQuantity – Product quantity
cartTotal – Cart total
checkoutStep – Checkout step
And more…

Free vs Premium
Free Version Includes:
* Automatic detection of WordPress and WooCommerce variables
* Works on all page types (posts, pages, products, archives, etc.)
* Zero configuration required
Premium Version Adds:
* Custom variables per page/post/product
* Visual editor in WordPress admin
* Preview auto-detected variables before publishing
* Priority support and updates

延伸相關外掛

文章
Filter
Apply Filters
Mastodon