# Podia

Add ProductLense to a Podia site with the custom code setting, and attribute sales when your Podia store takes payments through Stripe.

Podia lets you add code to the head of your site's pages. ProductLense goes there and runs on your storefront, product pages and landing pages.

## Add the script

1. In Podia, open your website settings and find the custom code field for the page head. Podia offers custom code on plans that include third-party code.
2. Paste the two tags below. Replace `SITE_ID` with the id from Settings → Sites in the ProductLense dashboard.
3. Save and publish.

```html title="Custom code (head)"
<script>window.productlense=window.productlense||function(){(window.productlense.q=window.productlense.q||[]).push(arguments)}</script>
<script defer data-site="SITE_ID" src="https://api.productlense.app/a.js"></script>
```

Add your Podia domain (for example `example.podia.com`) and your custom domain, if you use one, to the site's hostnames in the ProductLense dashboard.

## Revenue

Podia takes payments through a Stripe or PayPal account you connect. When it uses your own Stripe account, [connect Stripe](/docs/revenue/stripe) to ProductLense; buyers are matched to visitors by the email they used, sent with `identify` where you know it. ProductLense has no Podia connector, so PayPal sales are not imported unless you send them with the [Payment API](/docs/revenue/payments-api).

## Verify your installation

1. Open your Podia site in a normal browser window, logged out of Podia.
2. Open the Live page in the ProductLense dashboard. Your visit appears within a few seconds.
3. In the browser's developer tools, the Network tab shows a `POST` to `https://api.productlense.app/api/e` with status `204`.

If the visit does not appear, follow [Verify your installation](/docs/install/verify).
