Title: PostHog for WP &#8211; PostHog.com Integration
Author: Saad Malik
Published: <strong>2022 年 10 月 20 日</strong>
Last modified: 2026 年 5 月 27 日

---

搜尋外掛

![](https://ps.w.org/connect-wp-posthog-com-integration/assets/banner-772x250.png?
rev=3412648)

![](https://ps.w.org/connect-wp-posthog-com-integration/assets/icon.svg?rev=3412648)

# PostHog for WP – PostHog.com Integration

 由 [Saad Malik](https://profiles.wordpress.org/saadcodes/) 開發

[下載](https://downloads.wordpress.org/plugin/connect-wp-posthog-com-integration.1.4.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/)

## 外掛說明

PostHog for WP – PostHog.com Integration is a simple, lightweight solution for inserting
your PostHog.com Snippet code to your WordPress website.

PostHog is an open-source product analytics platform that helps you understand user
behavior. This plugin makes it easy to add PostHog tracking to your WordPress site
without editing theme files.

**Features:**

 * Easy setup – just paste your PostHog snippet code
 * Enable/disable tracking with one click
 * Lightweight and fast
 * Compatible with latest WordPress version
 * No coding required

## 螢幕擷圖

[⌊PostHog Settings menu⌉⌊PostHog Settings menu⌉[

PostHog Settings menu

[⌊Plugin Settings⌉⌊Plugin Settings⌉[

Plugin Settings

## 安裝方式

 1. Upload `posthog-for-wp-posthog-com-integration` to the `/wp-content/plugins/` directory
    or install directly through WordPress
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Settings  PostHog Settings
 4. Paste your PostHog snippet code from your PostHog project settings
 5. Enable the tracking and save

## 常見問題集

### Is this the official PostHog plugin?

No, this is a community-maintained plugin that integrates with PostHog.com.

### Where can I find out more about PostHog?

For more info go to the official site: [PostHog](https://www.posthog.com/)

### Where can I get the code snippet from?

Once signed in to PostHog, copy your snippet code from “Project”  “Settings”  “Web”
or visit the [Settings page](https://app.posthog.com/ingestion/web)

### Does this work with WooCommerce?

Yes, the PostHog snippet will track all pages including WooCommerce pages. WooCommerce-
specific event tracking will be added in a future update.

## 使用者評論

![](https://secure.gravatar.com/avatar/29c1daaa712900cc30d3998904e586b9ca48590cfe2e6e555a6dd076bc10e991?
s=60&d=retro&r=g)

### 󠀁[Version Update Audit: Success](https://wordpress.org/support/topic/version-update-audit-success/)󠁿

 [bankinghaus](https://profiles.wordpress.org/saadmallick/) 2025 年 12 月 5 日

Interface for WooCommerce Simpler Integration form fields Event Tracking and additional
custom flags.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈PostHog for WP – PostHog.com Integration〉的開發相關工作。

參與者

 *   [ Saad Malik ](https://profiles.wordpress.org/saadcodes/)
 *   [ Saad Malik ](https://profiles.wordpress.org/saad-malik/)

[將〈PostHog for WP – PostHog.com Integration〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/connect-wp-posthog-com-integration)

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

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

## 變更記錄

#### 1.4.1

 * Updated: WordPress 7.0 compatibility metadata
 * Fixed: i18n text domain now matches plugin slug for Plugin Check

#### 1.4.0

 * Updated: WordPress 6.9 compatibility
 * Updated: PHP 7.4 minimum requirement
 * Improved: Security with proper input sanitization and validation
 * Improved: Settings API with proper sanitize callbacks
 * Improved: Code quality following WordPress coding standards
 * Improved: Accessibility with ARIA labels and proper form structure
 * Fixed: Deprecated functions replaced with modern equivalents
 * Fixed: Capability checks now use manage_options instead of administrator role
 * Fixed: Used WordPress helper functions (checked(), esc_textarea(), etc.)
 * Added: Comprehensive PHPDoc comments
 * Added: Input validation for PostHog snippet
 * Added: Better error messages and user guidance

#### 1.3.0

 * Previous stable release

#### 1.0.0

 * Initial public release

## 中繼資料

 *  版本 **1.4.1**
 *  最後更新 **3 個月前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/connect-wp-posthog-com-integration/)
 * 標籤:
 * [PostHog](https://tw.wordpress.org/plugins/tags/posthog/)
 *  [進階檢視](https://tw.wordpress.org/plugins/connect-wp-posthog-com-integration/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/reviews/)

## 參與者

 *   [ Saad Malik ](https://profiles.wordpress.org/saadcodes/)
 *   [ Saad Malik ](https://profiles.wordpress.org/saad-malik/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/connect-wp-posthog-com-integration/)