What is the Click ID Restorer?
The Click ID Restorer is an add-on that solves the problem of losing Click IDs (gclid, fbclid, ttclid, etc.) due to iOS tracking prevention and Safari ITP. It automatically restores Click IDs server-side and adds them back to the query string.
The problem: iOS Tracking Prevention
- iOS 14.5+ Safari removes Click IDs from the URL after clicking an ad
?fbclid=xxx→ disappears during the redirect- Meta/Google loses attribution → "direct traffic"
- Result: Inaccurate ROAS, poor campaign optimization
The solution: Server-side restoration
- The first request with
?fbclid=xxx→ DataNostro saves the Click ID to a server-side cookie - A second request without a Click ID → DataNostro restores the Click ID from the server-side cookie
- The request is redirected to a URL with the restored Click ID
- GA4/Meta/TikTok sees the Click ID and attributes the conversion correctly
How to activate
- Go to Dashboard → Add-ons
- Turn on the "Click ID Restorer" toggle
- Configure the Click ID mappings (or use the defaults)
- Click "Save Click ID mappings"
Supported Click IDs
# Google Ads
gclid → _gcl_aw (cookie)
# Meta (Facebook/Instagram)
fbclid → _fbc (cookie)
# TikTok
ttclid → _ttp (cookie)
# Microsoft Ads
msclkid → _uetsid (cookie)
# LinkedIn
li_fat_id → li_fat_id (cookie)
Custom Click ID mappings
You can add custom Click ID mappings for custom platforms:
mycustomclid → _my_custom_cookie
partnerclid → _partner_click_id
How does it work technically?
- A request arrives at nginx:
GET /page?fbclid=abc123 - Nginx proxy_pass → DataNostro tracking middleware
- The middleware detects
fbclid=abc123 - Saves it to a server-side cookie:
_dn_fbclid=abc123; Max-Age=2592000(30 days) - The next request arrives WITHOUT fbclid:
GET /page - The middleware detects the missing fbclid, but finds the
_dn_fbclidcookie - Redirects to:
302 /page?fbclid=abc123 - Meta Pixel/GA4 sees the fbclid and attributes the conversion correctly
Compatibility
- ✅ Safari (iOS 14.5+, macOS Big Sur+)
- ✅ Firefox (Enhanced Tracking Protection)
- ✅ Brave Browser (Shields Up)
- ✅ Edge (Tracking Prevention)
✅ Impact:
DataNostro clients report a 20-35% increase in Meta/Google campaign attribution after activating the Click ID Restorer. iOS traffic in particular shows a dramatic improvement.