Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update WordPress integration guide to clarify plugin installation steps and add troubleshooting note for script placement in body section.

Bill Yang1818c4b7ba10
diff --git a/docs/content/docs/guides/wordpress.mdx b/docs/content/docs/guides/wordpress.mdx
index 819bfa228..924c079da 100644
--- a/docs/content/docs/guides/wordpress.mdx
+++ b/docs/content/docs/guides/wordpress.mdx
@@ -15,11 +15,11 @@ You can integrate Rybbit into your WordPress site to track user behavior and gat
You can find our community-maintained WordPress plugin as well as installation instructions [here](https://github.com/didyouexpectthat/rybbit-analytics-tracking-code). This is often the simplest method for most users.
</Tab>
<Tab>
- **Insert Headers and Footers Plugin (Good for WordPress.com or no-code approach)**
+ **Insert Headers and Footers Plugin**
If you don't want to modify your theme files directly, or if you are using WordPress.com (where direct theme editing is restricted), you can use a plugin to inject the Rybbit snippet.
- 1. Install the [Insert Headers and Footers](https://wordpress.com/plugins/insert-headers-and-footers) plugin (or a similar plugin that allows adding scripts to the header).
+ 1. Install the Insert Headers and Footers plugin: [WordPress.org](https://wordpress.org/plugins/insert-headers-and-footers/) | [WordPress.com](https://wordpress.com/plugins/insert-headers-and-footers) (or a similar plugin that allows adding scripts to the header).
2. Go to the plugin settings (often found under **Settings > Insert Headers and Footers**).
3. Paste your Rybbit tracking snippet into the section designated for scripts in the header.
```html
@@ -31,6 +31,7 @@ You can integrate Rybbit into your WordPress site to track user behavior and gat
></script>
```
4. Save your changes.
+ 5. **Note:** If the script doesn't work when placed in the header, try placing it in the body section instead. Some WordPress configurations may require the script to be loaded in the body for proper functionality.
</Tab>
<Tab>
**Add to `functions.php` (For self-hosted WordPress with child theme)**