{"id":163875,"date":"2022-10-20T08:13:25","date_gmt":"2022-10-20T08:13:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/posthog-for-wp-posthog-com-integration\/"},"modified":"2025-12-05T21:56:22","modified_gmt":"2025-12-05T21:56:22","slug":"connect-wp-posthog-com-integration","status":"publish","type":"plugin","link":"https:\/\/en-gb.wordpress.org\/plugins\/connect-wp-posthog-com-integration\/","author":20691380,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.0","stable_tag":"1.4.0","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"PostHog for WP - PostHog.com Integration","header_author":"Saad Malik","header_description":"Simple, lightweight solution for inserting your PostHog.com Snippet code to your WordPress website.","assets_banners_color":"fef0b0","last_updated":"2025-12-05 21:56:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/saad.codes\/plugins\/posthog-for-wp-posthog-com-integration\/","header_author_uri":"https:\/\/saad.codes\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":1455,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"saadcodes","date":"2022-10-20 08:13:21"},"1.0.1":{"tag":"1.0.1","author":"saadcodes","date":"2022-10-24 01:37:07"},"1.1":{"tag":"1.1","author":"saadcodes","date":"2022-10-20 12:49:10"},"1.2":{"tag":"1.2","author":"saadcodes","date":"2022-10-24 01:45:13"},"1.3":{"tag":"1.3","author":"saadcodes","date":"2022-10-24 01:55:21"},"1.4.0":{"tag":"1.4.0","author":"saadcodes","date":"2025-12-05 21:56:22"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3412648,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3412648,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3412648,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3412648,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3412648,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.2","1.3","1.4.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3412648,"resolution":"1","location":"assets","locale":"","width":159,"height":272},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3412648,"resolution":"2","location":"assets","locale":"","width":1088,"height":563}},"screenshots":{"1":"PostHog Settings menu","2":"Plugin Settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[214766,214764,214767,214768,214765],"plugin_category":[],"plugin_contributors":[214769],"plugin_business_model":[],"class_list":["post-163875","plugin","type-plugin","status-publish","hentry","plugin_tags-post-hog","plugin_tags-posthog","plugin_tags-posthog-integration","plugin_tags-posthog-wordpress-integration","plugin_tags-posthog-com","plugin_contributors-saad-malik","plugin_committers-saadcodes"],"banners":{"banner":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/banner-772x250.png?rev=3412648","banner_2x":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/banner-1544x500.png?rev=3412648","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/icon.svg?rev=3412648","icon":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/icon.svg?rev=3412648","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/screenshot-1.png?rev=3412648","caption":"PostHog Settings menu"},{"src":"https:\/\/ps.w.org\/connect-wp-posthog-com-integration\/assets\/screenshot-2.png?rev=3412648","caption":"Plugin Settings"}],"raw_content":"<!--section=description-->\n<p>PostHog for WP - PostHog.com Integration is a simple, lightweight solution for inserting your PostHog.com Snippet code to your WordPress website.<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Features:<\/strong><\/p>\n\n<ul>\n<li>Easy setup - just paste your PostHog snippet code<\/li>\n<li>Enable\/disable tracking with one click<\/li>\n<li>Lightweight and fast<\/li>\n<li>Compatible with latest WordPress version<\/li>\n<li>No coding required<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>posthog-for-wp-posthog-com-integration<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory or install directly through WordPress<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to Settings \u2192 PostHog Settings<\/li>\n<li>Paste your PostHog snippet code from your PostHog project settings<\/li>\n<li>Enable the tracking and save<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='is%20this%20the%20official%20posthog%20plugin%3F'><h3>Is this the official PostHog plugin?<\/h3><\/dt>\n<dd><p>No, this is a community-maintained plugin that integrates with PostHog.com.<\/p><\/dd>\n<dt id='where%20can%20i%20find%20out%20more%20about%20posthog%3F'><h3>Where can I find out more about PostHog?<\/h3><\/dt>\n<dd><p>For more info go to the official site: <a href=\"https:\/\/www.posthog.com\/\" title=\"posthog.com\">PostHog<\/a><\/p><\/dd>\n<dt id='where%20can%20i%20get%20the%20code%20snippet%20from%3F'><h3>Where can I get the code snippet from?<\/h3><\/dt>\n<dd><p>Once signed in to PostHog, copy your snippet code from \"Project\" \u2192 \"Settings\" \u2192 \"Web\" or visit the <a href=\"https:\/\/app.posthog.com\/ingestion\/web\" title=\"posthog.com\">Settings page<\/a><\/p><\/dd>\n<dt id='does%20this%20work%20with%20woocommerce%3F'><h3>Does this work with WooCommerce?<\/h3><\/dt>\n<dd><p>Yes, the PostHog snippet will track all pages including WooCommerce pages. WooCommerce-specific event tracking will be added in a future update.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Updated: WordPress 6.9 compatibility<\/li>\n<li>Updated: PHP 7.4 minimum requirement<\/li>\n<li>Improved: Security with proper input sanitization and validation<\/li>\n<li>Improved: Settings API with proper sanitize callbacks<\/li>\n<li>Improved: Code quality following WordPress coding standards<\/li>\n<li>Improved: Accessibility with ARIA labels and proper form structure<\/li>\n<li>Fixed: Deprecated functions replaced with modern equivalents<\/li>\n<li>Fixed: Capability checks now use manage_options instead of administrator role<\/li>\n<li>Fixed: Used WordPress helper functions (checked(), esc_textarea(), etc.)<\/li>\n<li>Added: Comprehensive PHPDoc comments<\/li>\n<li>Added: Input validation for PostHog snippet<\/li>\n<li>Added: Better error messages and user guidance<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Previous stable release<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"PostHog for WP - PostHog.com Integration is a simple, lightweight solution for inserting your PostHog.com Snippet code to your WordPress website.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/163875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=163875"}],"author":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/saadcodes"}],"wp:attachment":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=163875"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=163875"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=163875"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=163875"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=163875"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=163875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}