Muro
Installation guides

Install Muro on Framer

Add the Muro script to a Framer site through the site-wide custom code setting.

Framer has a site-wide custom code setting that runs on every page. Paste the Muro script there and publish.

Steps

Copy your snippet

In Muro, go to Settings → Project → Tracking script and click Copy script:

<script async src="https://api.muroanalytics.com/muro.js" data-project-id="YOUR_PROJECT_ID"></script>

Paste it into the head custom code

  1. Open your project in Framer and open Site Settings.
  2. In the General section, scroll to Custom Code.
  3. Paste the snippet into the Start of <head> tag field.
  4. Save.

Publish

Click Publish. Custom code only runs on the published site, not in the Framer canvas or preview.

Verify it works

  1. Open your published site (your custom domain or the framer.website address).
  2. Open DevTools, go to the Network tab, filter by collect and reload. You should see a POST to cdn.muroanalytics.com/collect with status 202.
  3. Click through to another page. A new collect request appears.
  4. Or, in Muro, set the time picker to Live. Your visit appears within about 30 seconds.

Good to know

  • Page changes are tracked. Framer moves between pages without a full reload, using history.pushState, which Muro listens to. No extra setup needed.
  • Use site-wide code, not page code. Framer also has per-page custom code. Put Muro in the site-wide setting so it loads once on every page.
  • Custom events. Use an Embed or a code component to render a button with a data-muro-event attribute, or to call window.muro?.track(...). See Track custom events.

Next steps

On this page