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 → End of body tag
Paste the Tracking Code
<script
defer
data-site="YOUR_SITE_ID"
src="https://adtarget.io/tracker.min.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
- Press F12 to open DevTools
- Look for “AdTarget: initialized” in the Console
That’s it! You’re tracking.
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 → End of body
- 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/tracker.min.js';
s.setAttribute('data-site', siteId);
document.body.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.