# Framer

> How to add the Dub Analytics script to your Framer 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 Framer site, enabling you to measure the effectiveness of your marketing campaigns.

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

Follow these steps to add the script to your site:

- Go to your Framer project and open the **Project Settings** menu.
- Open the **General** tab and scroll down to the **Custom Code** section.
- Paste the Dub analytics script in the **Start of head tag** section.
- Click on the **Save** 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 />
