Install on Carrd

Add XPmetric to a Carrd site with a hidden Embed element placed in the head.

Carrd adds scripts through an Embed element.

Replace YOUR_SITE_TOKEN with your site token from Settings → Sites → Get Script.

Tracking snippet

<script defer data-site="YOUR_SITE_TOKEN" src="https://xpmetric.com/p.js"></script>

Before you start

Embeds with custom code need Carrd Pro Standard or higher.

Steps

  1. Open your site in the Carrd builder and add an Embed element anywhere on the page.
  2. Set Type to Code.
  3. Set Style to Hidden and choose Head.
  4. Paste the tracking snippet into Code.
  5. Click Done, then Publish.

Verify

Open your published site in a browser, then check the XPmetric dashboard. The first pageview shows up within a few seconds.

A Carrd site is a single page, so sections reached through # links count as one pageview.

If nothing arrives, check the CSP troubleshooting guide or reply to your welcome email and we will look at it with you.