---
title: "Install DataPocket on WordPress"
description: "Add DataPocket web analytics with revenue attribution to WordPress. Official plugin: tracking, built-in proxy, WooCommerce revenue."
url: "https://datapocket.vo1d.studio/docs/wordpress"
lang: "en"
updated: "2026-11-13"
---

# Install DataPocket on WordPress

Official plugin: tracking, built-in proxy, WooCommerce revenue. Replace `YOUR_SITE_ID` and `YOUR_DOMAIN` with the values from your site's Install page. This guide serves the script from your own domain, so ad blockers can't tell it apart from your own code.

## Steps

1. Download the plugin, then Plugins → Add New → Upload Plugin → Activate:

```
https://datapocket.vo1d.studio/downloads/datapocket-wordpress.zip
```

2. Settings → DataPocket: enter Site ID YOUR_SITE_ID and domain YOUR_DOMAIN. Turn on "Proxy through my site" to bypass ad blockers.

3. No plugin? Paste the tag into your theme's header.php before </head> (or use a header-code plugin):

```html
<script
  defer
  data-site-id="YOUR_SITE_ID"
  data-domain="YOUR_DOMAIN"
  src="https://datapocket.vo1d.studio/js/script.js"
></script>
```

## Revenue attribution

1. WooCommerce: paste a website API key in Settings → DataPocket. Paid orders are sent with the buyer's visitor id, and refunds are synced automatically.

## Verify

1. Deploy or publish, then open your site in a normal browser window (ad blockers off).
2. In the browser's Network tab, look for a POST to `/api/event` (or `/dp/api/event` when proxied) that returns `{"ok":true}`.
3. The DataPocket Install page for this site switches to "Receiving data" within a few seconds.

## Related guides

- [Google Tag Manager](https://datapocket.vo1d.studio/docs/gtm): A Custom HTML tag on All Pages.
- [Framer](https://datapocket.vo1d.studio/docs/framer): Site Settings → General → Custom Code.
- [Wix](https://datapocket.vo1d.studio/docs/wix): Settings → Custom Code (needs a Premium plan and a connected domain).
- [Webflow](https://datapocket.vo1d.studio/docs/webflow): Site Settings → Custom Code → Head code (paid site plan).
- [AI crawler tracking](https://datapocket.vo1d.studio/docs/ai-bots)
