# WordPress

> How to add the Dub Analytics script to your WordPress site

import DubAnalyticsParams from "/snippets/dub-analytics-params.mdx";
import DubClientInstallVerify from "/snippets/dub-client-install-verify.mdx";
import ClientSideClickTrackingAddendum from "/snippets/client-side-click-tracking-addendum.mdx";

With Dub Analytics, you can track lead and sale conversions on your WordPress site, enabling you to measure the effectiveness of your marketing campaigns.

You can add the Dub Analytics script to your WordPress website same way you would add Google Analytics script or any other JavaScript code.

Follow these steps to add the script to your site:

- On your WordPress dashboard, navigate to the **Theme Editor** section under the **Appearance** menu.
- Open the **Theme Header (header.php)** file on the right column.
- Paste the Dub analytics script in the header area.
- Click on the **Update File** button to save the changes.

```html
<script src="https://www.dubcdn.com/analytics/script.js" defer></script>
```

<ClientSideClickTrackingAddendum />

<DubClientInstallVerify />

## Concepts

You can pass the following props to the Dub Analytics script to customize its behavior:

<DubAnalyticsParams />
