Framer Integration
Install the Koah pixel on your Framer website to track visitor actions and measure the effectiveness of your advertising campaigns.
Prerequisites
- Access to your Koah advertiser dashboard to retrieve your unique advertiser ID
- A Framer project on a paid plan
- Your site published to a custom domain
Installation
1
Get your pixel code
Log in to your Koah advertiser dashboard and start the installation helper. It provides the Koah head and body pixel code you'll paste into Framer.
2
Open Framer's custom code settings
- Open your Framer project
- Click the Site Settings gear icon in the top toolbar
- Go to the General tab and scroll down to Custom Code
3
Add the pixel code
- Paste the Koah head pixel code into the Start of
<head>tag field - Paste the Koah body pixel code into the End of
<body>tag field - Click Save
4
Publish your site
- Click Publish in the top right corner
- Make sure your site is published to your custom domain
- Wait for the publish process to complete
5
Verify your installation
After publishing:
- Visit your published website (not the Framer preview)
- The Koah installation helper will confirm if the pixel is installed correctly
Tracking events
Once the pixel is live, you can track additional conversion events to measure specific actions on your site. The steps below track a button click as an example.
1
Select your button
- In the Framer editor, select the button you want to track
- Click the Code icon in the properties panel (it appears when an element is selected) to open the custom code editor
2
Add the tracking code
In the custom code editor, add the following, replacing "Lead" and the parameters with your own event (see the Events documentation for all event types and parameters):
export function withKoahPixel(Component): ComponentType {
return forwardRef((props, ref) => {
return (
<Component
ref={ref}
{...props}
onClick={() => {
window.kad("track", "Lead", { currency: "USD", value: 50.0 });
}}
/>
)
})
}
FAQ
Was this helpful?