Add AdTarget to Framer
Let’s add tracking to your Framer site. This takes about 2 minutes.
What You Need
- A Framer project
- Your site ID from AdTarget
Find your Site ID in the AdTarget dashboard under your site settings.
Add the Code
Open Site Settings
Click the Settings icon (gear) → General
Find Custom Code
Scroll to Custom Code → Start of <head> tag
Paste the Tracking Code
<script
defer
data-website-id="atid_YOUR_WEBSITE_ID"
data-domain="yourdomain.com"
src="https://adtarget.io/track.js"
></script>Close settings (changes save automatically).
Publish Your Site
Click Publish to make your site live.
Check It’s Working
Visit your published site, then open your AdTarget dashboard — you should see tracking activity appear within a few seconds.
Tip: If you don’t see activity right away, try clearing your browser cache and visiting your site again.
Multiple Funnels on the Same Domain
Need different Telegram channels for different sections of your site? For example, yoursite.com and yoursite.com/uk each leading to separate channels.
How it works: Create a separate site in AdTarget for each funnel. Each site gets its own tracking code and Telegram channel.
Create Multiple Sites in AdTarget
In your AdTarget dashboard , create one site per funnel:
- Site 1:
yoursite.com→ connects to your main channel - Site 2:
yoursite.com/uk→ connects to your UK channel
Use Page-Level Custom Code
Instead of adding code in Site Settings (which applies globally), add it per page:
- Select the page you want to track
- Open Page Settings (gear icon in the layers panel)
- Scroll to Custom Code → Start of
<head>tag - Paste the appropriate tracking code
Alternative: Use JavaScript Logic
If you prefer a single global script, add this to your site-wide custom code:
<script>
(function() {
var siteId = window.location.pathname.indexOf('/uk') === 0
? 'atid_xyz789' // UK funnel
: 'atid_abc123'; // Main site
var s = document.createElement('script');
s.defer = true;
s.src = 'https://adtarget.io/track.js';
s.setAttribute('data-website-id', siteId);
s.setAttribute('data-domain', 'yourdomain.com');
document.head.appendChild(s);
})();
</script>Important: Use either page-level code OR the JavaScript logic approach—not both. Each page should only load one tracking script.
Need Help?
Email us with your Framer URL and we’ll help.