Overview
By proxying requests to Converge through your own domain, Converge is no longer treated as a third-party script. This has the following advantages:- First-party cookies When Converge runs on your main domain, we automatically set a first-party cookie. First-party cookies are not restricted by browser privacy features like Apple ITP. They are longer-lasting, allowing you to track longer user journeys.
- Bypassing ad blockers Converge’s domain can be blocked by ad blockers based on our domain name. Using your own domain lets you bypass these ad blockers.
Installation instructions
There are two parts to proxying requests to Converge:- Hosting the script on your own domain By proxying requests to
https://static.runconverge.com/pixels/*.jsthe Converge script is loaded through your domain. - Proxying the tracking requests By proxying requests to
https://app.runconverge.com/api/tr/*the tracking requests are sent through your domain.
Ensure that the proxy sets the
X-Forwarded-For header to the original IP address of the request.Ensure that the proxy sets the
X-Forwarded-Host header to the domain name of your proxy.1
Update the
src of the Converge script to point to your domain. Replace xxxxxx with your Converge pixel public token.2
Include the This should happen before any tracking calls.
proxy call to configure your proxied endpoints for static and tracking requests.Setting up a proxy through Vercel rewrites
If your site is hosted on Vercel, you can use the vercel.json configuration file to easily set up a proxy to Converge.Advanced implementation
Advanced implementation
If you want to make sure that your proxy is only used for the pixels in your Converge workspace you can add some extra conditions to the configuration file.Replace
xxxxxx with your Converge pixel public token and YY-YYYYYYY with the GTAG ID from Google Analytics 4 or Google Ads.- static scripts like the Converge pixel and GTAG’s load from your own domain
- tracking requests to
/tr/*are proxied through your domain - the response headers from the
/tr/trackcall include theSet-Cookieheader which sets a__cvg_1p_uidcookie