Skip to main content

Framer Integration

With CutMeShort 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 CutMeShort Analytics script to your Framer website same way you would add Google Analytics script or any other JavaScript code.

Installation

Follow these steps to add the script to your site:
  1. Go to your Framer project and open the Project Settings menu.
  2. Open the General tab and scroll down to the Custom Code section.
  3. Paste the CutMeShort analytics script in the Start of head tag section.
  4. Click on the Save button to save the changes.
<script src="https://cut-me-short-public.s3.ap-south-1.amazonaws.com/dev/track_dev.js" defer></script>

Client-side Click Tracking

You can also set up the data-domain property to enable client-side click-tracking for your campaigns.
<script
  src="https://cut-me-short-public.s3.ap-south-1.amazonaws.com/dev/track_dev.js"
  defer
  data-domain="yourdomain"
></script>
Replace yourcdomain with your domain link domain on CutMeShort.

Verification

You can verify the installation with the following tests:
  1. Open the browser console and type in window._cms – if the script is installed correctly, you should see the CMS tracking object in the console.
  2. Add the ?cms_id=test query parameter to your website URL and make sure that the tracking cookie is being set in your browser.
If both of these checks pass, the script is installed correctly. Otherwise, please make sure:
  • The analytics script was added to the <head> section of the page
  • If you’re using a content delivery network (CDN), make sure to purge any cached content

Configuration Options

You can pass the following props to the CutMeShort Analytics script to customize its behavior:

data-api-host

Type: URL
Default: https://www.cutmeshort.com
The base URL for the CutMeShort API. This is useful for setting up reverse proxies to avoid adblockers.

data-domain

Type: string Configure the domains that CutMeShort will track.