---
title: "Framer Help: How to track links and forms in Framer"
description: You might want to know how many times a specific link is clicked or how often a form is submitted. You can do this by adding a tracking ID to a link or form.
published: "Nov 6, 2026, 11:03 AM UTC"
---

# How to track links and forms in Framer

You might want to know how many times a specific link is clicked or how often a form is submitted. You can do this by adding a tracking ID to a link or form.

### [Add tracking to a link](#add-tracking-to-a-link)

When adding a link, you can include a tracking ID during setup. Use a **unique ID** to ensure your results are accurate and not mixed with other events.

### [Add tracking to a form](#add-tracking-to-a-form)

When selecting a form on the canvas, you can add a tracking ID during setup. Whenever someone submits the form on your site, the [event](../../../dictionary/event) will be tracked.

### [Viewing results](#viewing-results)

Once you’ve added tracking to a link or form, you can view the results in your **Analytics Overview**. There will be a section called **“Tracking”**, where you can see the top 20 tracking events on your site. You can also use these tracking IDs in [Funnels](../how-to-set-up-a-funnel/) and [A/B tests](../how-to-run-an-a-b-test-on-your-framer-site/)to measure conversion rates.

### [Record tracking events in an external system (Rudderstack, Segment, GA, etc.)](#record-tracking-events-in-an-external-system-(rudderstack-segment-ga-etc.))

Framer provides custom events that you can use to track user interactions on your site. These events can be easily integrated with analytics platforms like [**Google Analytics**](../../../dictionary/google-analytics) or **Segment**.

Add the following script to the [Custom Code](https://www.framer.com/academy/lessons/custom-code) section of your site:

```
// Listen for click events
document.addEventListener("framer:click", (event) => {
    console.log("Click tracked:", event.detail.trackingId);
});
```

### [Available events](#available-events)

**Event** | **Description** | **Details**
framer:click | When someone clicks a link with a tracking ID set | 

```
{
  trackingId: string;
  href: string;
}
``` 
framer:formsubmit | When someone submits a form with a tracking ID set | 

```
{
  trackingId: string;
}
``` 
framer:pageview | When someone views a page | 

```
{
  framerLocale: string;
}
``` 
framer:triggerinvoke | When a trigger with a tracking ID set is invoked | 

```
{
  trackingId: string;
}
``` 

### [Example: Google Analytics using gtag.js](#example-google-analytics-using-gtag.js)

```
document.addEventListener("framer:click", (event) => {
    gtag('event', 'click', {
        'event_category': 'engagement',
        'event_label': event.detail.trackingId,
        'value': event.detail.href
    });
});
```

### [Example: Universal Analytics using analytics.js](#example-universal-analytics-using-analytics.js)

```
document.addEventListener("framer:click", (event) => {
    ga('send', 'event', {
        eventCategory: 'engagement',
        eventAction: 'click',
        eventLabel: event.detail.trackingId,
        eventValue: event.detail.href
    });
});
```

#### FAQ

### How do I add tracking to a link or form in Framer?

When adding a link or selecting a form on the canvas, you can include a unique tracking ID during setup. This ensures your results are accurate and not mixed with other events. For links, add the tracking ID when setting up the link. For forms, add the tracking ID during the form setup. Whenever someone clicks the link or submits the form, the event will be tracked.

### Where can I view the results of my tracking events in Framer?

Once you’ve added tracking to a link or form, you can view the results in your Analytics Overview. There is a section called 'Tracking' where you can see the top 20 tracking events on your site. You can also use these tracking IDs in Funnels and A/B tests to measure conversion rates.

### Can I send Framer tracking events to external analytics platforms like Google Analytics or Segment?

Yes, Framer provides custom events that you can use to track user interactions and send them to analytics platforms like Google Analytics or Segment. You can add a script to the Custom Code section of your site to listen for events such as 'framer:click' or 'framer:formsubmit' and forward them to your analytics tool. Example scripts are provided for both gtag.js and analytics.js integrations.

Updated

September 15, 2026

## Your next idea starts here

Create personal portfolio, Build startup site, `Launch landing page`, Start company blog

[Start without AI](https://framer.com/signup)

---

## Navigation

- [Enterprise](../../../enterprise/)
- [Pricing](../../../pricing)
- [Log in](https://framer.com/login)
- [Sign up](https://www.framer.com/r/signup/)
- [Brand guidelines](../../../brand)
- [Help center](../../)
- [Data](../../analytics/)
- [AI](../../../ai/)
- [Agents](../../../agents/)
- [MCP New](../../../mcp/)
- [Design](../../../design/)
- [Collaborate](../../../collaborate/)
- [CMS](../../../cms/)
- [Hosting](../../../hosting/)
- [Performance](../../../performance/)
- [Analytics](../../../analytics)
- [SEO](../../../seo/)
- [Skills New](../../../skills)
- [Convert](../../../convert/)
- [Publish](../../../publish/)
- [Updates](../../../updates)
- [Templates](https://www.framer.com/community/marketplace/templates/)
- [Components](https://www.framer.com/community/marketplace/components/)
- [Vectors](https://www.framer.com/community/marketplace/vectors/)
- [Plugins](https://www.framer.com/community/marketplace/plugins/)
- [Gallery](https://www.framer.com/community/gallery/)
- [Hire Experts](https://www.framer.com/community/members/)
- [Switch New](../../../switch/)
- [Agencies](../../../agencies/)
- [Startups](../../../startups/)
- [Academy](../../../academy/)
- [Desktop App](../../../downloads/)
- [Developers](../../../developers/)
- [Affiliates](../../../creators)
- [Experts New](../../../expert/apply/)
- [Guides](../../../guides)
- [Blog](../../../blog/)
- [Newsletter](../../../newsletter)
- [Stories](../../../stories/)
- [Skills Index New](../../../skills/index)
- [Students](../../../education/students/)
- [Ambassadors](../../../)
- [Help Articles](../../)
- [Meetups](../../../meetups/)
- [Contact](../../../contact/)
- [Designers](../../../solutions/designers/)
- [Agencies](../../../solutions/agencies/)
- [Marketers](../../../solutions/marketers/)
- [Growth](../../../solutions/growth/)
- [Builders](../../../solutions/builders/)
- [Engineers](../../../solutions/engineers/)
- [Site Teams](../../../solutions/site-teams/)
- [Founders](../../../solutions/founders/)
- [AI website builder](../../../solutions/ai-website-builder/)
- [AI design agent](../../../solutions/ai-designer/)
- [Pro sites](../../../solutions/website-builder/)
- [Landing pages](../../../solutions/landing-pages/)
- [Portfolio maker](../../../solutions/portfolio-website/)
- [UI/UX design](../../../solutions/ui-ux-design/)
- [Figma to HTML](../../../solutions/figma-to-html/)
- [No-code](../../../solutions/no-code-website-builder/)
- [Compare](../../../compare)
- [Webflow](../../../compare/framer-vs-webflow)
- [Figma](../../../compare/framer-vs-figma)
- [Wix](../../../compare/framer-vs-wix)
- [Squarespace](../../../compare/framer-vs-squarespace)
- [WordPress](../../../compare/framer-vs-wordpress)
- [Readymag](../../../compare/framer-vs-readymag)
- [Ceros](../../../compare/framer-vs-ceros)
- [Unbounce](../../../compare/framer-vs-unbounce)
- [Lovable](../../../compare/framer-vs-lovable)
- [Claude Code](../../../compare/framer-vs-claude-code)
- [ChatGPT](../../../compare/framer-vs-chatgpt)
- [Codex](../../../compare/framer-vs-codex)
- [Contentful](../../../compare/framer-vs-contentful)
- [Sanity](../../../compare/framer-vs-sanity)
- [AEM](../../../compare/framer-vs-adobe-experience-manager)
- [Replit](../../../compare/framer-vs-replit)
- [Astro](../../../compare/framer-vs-astro)
- [v0](../../../compare/framer-vs-v0)
- [About New](../../../about)
- [Careers](../../../careers/)
- [Security](../../../legal/security)
- [Brand](../../../brand)
- [Abuse](mailto:abuse@framer.com)
- [Legal](../../../legal/community-terms)
- [Trust](https://app.eu.vanta.com/framer.com/trust/ow67ujg7iav0t6qtd1o6r2)
- [Merch](../../../store)
- [Keyboard](../../../f1)
- [Stack Score](../../../stack-score/)
- [Free domains](../../../domains/)
- [CanvasBench](../../../canvasbench/)
- [State of Sites](https://www.framer.com/state-of-sites-2026/)
- [AEO scanner](../../../aeo)
- [Link Preview](https://www.linkpreview.app/)
- [Checking status](https://www.framerstatus.com/)
