> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.writesonic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrating with Wordpress

> This guide walks you through the process of implementing AI Traffic Analytics on your Wordpress website.

## Prerequisites

* An active Writesonic account
* Admin access to your Wordpress website

## Start in Writesonic

1. Head over to the [AI Traffic Analytics page](https://app.writesonic.com/geo/ai-traffic-analytics) on Writesonic

2. Click on **"Wordpress"**

   <img src="https://mintcdn.com/writesonic/dn64fE971vqZNBuD/images/docs/7dd7db2a61094a65f39ecb4a773c15ec42b8a6e58670331acdd03a207bb53686-Screenshot_2025-03-09_at_6.35.56_AM.png?fit=max&auto=format&n=dn64fE971vqZNBuD&q=85&s=7cf76ccab4231dcd1a3328ab7b109024" alt="" width="1858" height="1016" data-path="images/docs/7dd7db2a61094a65f39ecb4a773c15ec42b8a6e58670331acdd03a207bb53686-Screenshot_2025-03-09_at_6.35.56_AM.png" />

3. Enter your WordPress website domain and click "Continue"

   <img src="https://mintcdn.com/writesonic/X3wiRgE7vzfy9Z8A/images/docs/19969dae8d42c8d0d15208c4cef25f223fc4d3a3600fe01e9204bb1760114313-Screenshot_2025-03-09_at_6.43.38_AM.png?fit=max&auto=format&n=X3wiRgE7vzfy9Z8A&q=85&s=baf8156d2494e5776334ecf8e5d79eff" alt="" width="1186" height="1130" data-path="images/docs/19969dae8d42c8d0d15208c4cef25f223fc4d3a3600fe01e9204bb1760114313-Screenshot_2025-03-09_at_6.43.38_AM.png" />

4. Writesonic will generate a unique API key for your website. Keep this page open as you'll need this API key during the plugin installation.

<img src="https://mintcdn.com/writesonic/mL2PcCVqj70X1MZv/images/docs/fe7023e6938017a8235f46bb444003e2b8bba8be922e4b57811f2fad366f46d8-image.png?fit=max&auto=format&n=mL2PcCVqj70X1MZv&q=85&s=a893a136b0bd0d1c02d7b186b6b8c90f" alt="" width="1272" height="1554" data-path="images/docs/fe7023e6938017a8235f46bb444003e2b8bba8be922e4b57811f2fad366f46d8-image.png" />

## Install the Wordpress Plugin

1. Download the Writesonic AI Analytics plugin by clicking the "Download" icon next to the zip file

2. Log in to your Wordpress admin dashboard

3. Navigate to Plugins > Add New Plugin > Upload Plugin

4. Choose the downloaded ZIP file (writesonic-analytics.zip) and click "Install Now"

   <img src="https://mintcdn.com/writesonic/X3wiRgE7vzfy9Z8A/images/docs/07ccafb3c5c27b7ccfa79b9176a026fa9d42d49335e9ffa59d49bce0ab97b011-Screenshot_2025-03-09_at_6.56.09_AM.png?fit=max&auto=format&n=X3wiRgE7vzfy9Z8A&q=85&s=d65dbe98363227962edfad54438ee37c" alt="" width="2674" height="1136" data-path="images/docs/07ccafb3c5c27b7ccfa79b9176a026fa9d42d49335e9ffa59d49bce0ab97b011-Screenshot_2025-03-09_at_6.56.09_AM.png" />

5. After installation completes, click "Activate Plugin"

   <img src="https://mintcdn.com/writesonic/nTROtF1WuUqhx9V0/images/docs/4361c2984c0d1acea819a65e7ba1f8dae426f7824777630bc6dca896a8ce82fb-Screenshot_2025-03-09_at_7.00.42_AM.png?fit=max&auto=format&n=nTROtF1WuUqhx9V0&q=85&s=0822a47a425877e13c5885472acc5e53" alt="" width="1884" height="638" data-path="images/docs/4361c2984c0d1acea819a65e7ba1f8dae426f7824777630bc6dca896a8ce82fb-Screenshot_2025-03-09_at_7.00.42_AM.png" />

## Configure the Plugin

1. Once activated, navigate to Settings > “Writesonic AI Analytics” in your WordPress admin menu

   <img src="https://mintcdn.com/writesonic/iNIgGEoh_nUcRO7A/images/docs/c3781921dca405d9256a48df01674eafd670bad4c36698eea6bbb7fe20869919-Screenshot_2025-03-09_at_7.02.19_AM.png?fit=max&auto=format&n=iNIgGEoh_nUcRO7A&q=85&s=a22085072d6ae5e0aab4941b75f9751a" alt="" width="460" height="1576" data-path="images/docs/c3781921dca405d9256a48df01674eafd670bad4c36698eea6bbb7fe20869919-Screenshot_2025-03-09_at_7.02.19_AM.png" />

2. On the settings page, enter the API Key that was provided in Phase 1

3. Click "Save Settings" to store your configuration

   <img src="https://mintcdn.com/writesonic/58yCcA4iOuLjtoVe/images/docs/9bace2d2678b6b3bef433011cf94d9d6563c92857fa66787a3e4bb33668afb0c-Screenshot_2025-03-09_at_7.07.23_AM.png?fit=max&auto=format&n=58yCcA4iOuLjtoVe&q=85&s=31e1097aba647769d2bb5c10a131d511" alt="" width="1654" height="882" data-path="images/docs/9bace2d2678b6b3bef433011cf94d9d6563c92857fa66787a3e4bb33668afb0c-Screenshot_2025-03-09_at_7.07.23_AM.png" />

## Verify Installation in Writesonic

1. Return to Writesonic (the page you kept open from Phase 1)

2. Click on "Verify Connection" to confirm that your Wordpress site is properly connected

   <img src="https://mintcdn.com/writesonic/mL2PcCVqj70X1MZv/images/docs/eefc514e19be9fbe8407b44feee99ad056baaea34385960c9f32b4da47d8429e-Screenshot_2025-03-09_at_7.07.57_AM.png?fit=max&auto=format&n=mL2PcCVqj70X1MZv&q=85&s=43e7e719bbc7b34910334f86889e3798" alt="" width="1136" height="1518" data-path="images/docs/eefc514e19be9fbe8407b44feee99ad056baaea34385960c9f32b4da47d8429e-Screenshot_2025-03-09_at_7.07.57_AM.png" />

3. Once verified, you'll be redirected to your analytics dashboard. The process typically finishes in 1–2 minutes but may take up to 5 minutes.

## Troubleshooting

If you encounter any issues during setup:

* Ensure your API key is entered correctly
* Verify that your Wordpress site is publicly accessible
* Check that the plugin is activated
* If you have cloudflare setup which is routing traffic to your Wordpress, make sure that it is not overwriting the original request headers
* For assistance, contact [\[email protected\]](/cdn-cgi/l/email-protection#07747277776875734770756e73627468696e642964686a)

For more detailed debugging, please check out the [Troubleshooting and FAQs](https://docs.writesonic.com/docs/ai-traffic-analytics-troubleshooting-and-faqs) page.

## Uninstalling

If you need to remove the plugin:

1. Navigate to Plugins in your Wordpress admin
2. Deactivate the Writesonic AI Analytics plugin
3. Click "Delete" to completely remove it

Note: Uninstalling the plugin will stop data collection, but your existing analytics data will remain available under the AI Traffic Analytics section

***

***

[Integrating With Cloudflare](/docs/integrating-with-cloudflare)

[Integrating with Vercel Log Drains](/docs/integrating-with-vercel-log-drains)
