Skip to content
Logo

Framer

The FlarePanel Analytics plugin for Framer adds the tracking script to your whole site. You paste your client ID; the plugin writes the code into the site's custom code for you.

With the plugin

  1. In FlarePanel, open your project's Settings → Clients and copy the client ID. No account yet? Start a 30-day trial, no card needed.
  2. In Framer, open the plugin: Plugins → FlarePanel Analytics.
  3. Paste the client ID and select Install.
  4. Publish the site. Tracking starts on the published site; the Framer editor and preview are not tracked.

To change the settings, open the plugin again and select Update. Remove takes the code out; publish again to update the live site.

The plugin uses the end of <body> custom code slot. If your site already has other code there, the plugin warns you before it replaces it.

Without the plugin

  1. In Framer, open Site Settings → General → Custom Code.
  2. Paste this into End of <body> tag, with your client ID:
<script>
  window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:"call"===r||"apply"===r||"bind"===r?t[r]:function(){n.push([r].concat([].slice.call(arguments)))}},has:function(t,r){return"q"===r}})}();
  window.op('init', {
    clientId: 'YOUR_CLIENT_ID',
    trackScreenViews: true,
    trackOutgoingLinks: true,
    trackAttributes: true,
  });
</script>
<script src="https://flarepanel.dev/op1.js" defer async></script>
  1. Publish the site.

Self-hosted FlarePanel

In the plugin, open Self-hosted FlarePanel and set your API URL and the URL of your op1.js. With the snippet, add apiUrl: 'https://api.example.com' to the init options and change the script src.

Track clicks without code

Framer lets you add custom attributes to a layer. Add data-track with the event name, for example data-track="signup_click", and every click on that layer becomes an event. See Events and properties.