# Track WordPress Websites

It’s easy to add Website Tracking to your WordPress site. Follow the steps below to use the WordPress plugin and install the JavaScript code:

1. Install the “WP-Matomo” plugin in your WordPress.

   * Log in to your WordPress site as the administrator.
   * In the left menu, Click on “Plugins” > “Add new” (if you can’t see the “Plugins” menu, then you can instead [follow these steps to insert the Website Tracking code manually in your WordPress Theme files](https://matomo.org/faq/new-to-piwik/how-do-i-manually-insert-the-matomo-tracking-code-on-wordpress/)).
   * Search for “Connect Factoreal” in the Keyword field on the “Add Plugins” page.

   <figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FgYrer2GuNinUdrveHKY3%2Fimage.png?alt=media&#x26;token=c47bb8b9-8ef7-4d0c-be4f-08ca8239d7c3" alt=""><figcaption></figcaption></figure>

   * Click on “Install Now” next to the “WP-Matomo” plugin

   <figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FcVl0mgc7g89SQXpA1Vyz%2Fimage.png?alt=media&#x26;token=e57aff85-4318-4689-a4ef-24a674d0fee8" alt="" width="375"><figcaption></figcaption></figure>

   * Now that the plugin is successfully installed, click on “Activate”.
2. In the left menu, click “Settings” > “WP-Matomo”.
3. In the “Satisfi Labs Mode” dropdown, select the option “Self-hosted (HTTP API, default)”.

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2Fyhp1MjTaISy266aS68GQ%2Fimage.png?alt=media&#x26;token=bb0761d7-3b9f-481e-99eb-a1d0dfc9e65e" alt=""><figcaption></figcaption></figure>

4. In the “Website Analytics URL” text field, enter your Website Analytics URL, for example <https://analytics.example.com>.
5. In the “Auth token” text field, enter your Factoreal authentication token.
6. Confirm the “Auto config” checkbox is selected and click on “Save Changes”.
7. You should see “WP-Matomo is successfully connected to Factoreal” message. If you do not see the message, make sure the values you provided in the previous steps are correct, and try again.
8. Click on the “Enable Tracking” tab.
9. In the “Add tracking code” dropdown, select “Enter manually” and add the copied tracking script.

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2F9Gc9g2IEFnUcqqWmFRAQ%2Fimage.png?alt=media&#x26;token=8cb8edec-0b34-4f0d-890c-9ea23e04e23a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FzTv4VjDfcec9wiVrAGqL%2Fimage.png?alt=media&#x26;token=3e53c967-07bc-4ef3-8935-f936f5b38f58" alt=""><figcaption></figcaption></figure>

10. Click on “Save Changes” and a success message will appear.

<figure><img src="https://167344003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsxN9AGLZMIc5C8dx3zU7%2Fuploads%2FAm5IH2K3oUr34Z6Y6rfQ%2Fimage.png?alt=media&#x26;token=ed631db1-398a-456f-bdff-fd317109bcaf" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Don't hesitate to get in touch with our team at <me-support@satisfilabs.com> with any questions you may have!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.satisfilabs.com/resource-center/marketing-engine/settings-and-integrations/integrations/website-tracking/track-wordpress-websites.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
