Using a Custom Domain
Overview
Section titled “Overview”You can route Growl events through your own domain by creating a CNAME record. This approach can help with:
- Ad blocker bypass: Some ad blockers target third-party tracking domains. Using your own domain can improve event delivery reliability.
- First-party context: Events appear to come from your domain, which can improve data accuracy and reduce browser restrictions.
Setup Instructions
Section titled “Setup Instructions”-
Create a CNAME Record
Add a CNAME record in your DNS provider pointing to Growl’s platform:
gr.yourdomain.com → cname.withgrowl.comReplace
yourdomain.comwith your actual domain. You can use any subdomain you prefer (e.g.,growl.yourdomain.com,analytics.yourdomain.com, etc.). -
Wait for DNS Propagation
DNS changes can take time to propagate globally. This typically ranges from:
- A few minutes (with modern DNS providers)
- Up to 48 hours (in rare cases with older systems)
-
Verify DNS Propagation
Before updating your website, verify that your CNAME is working correctly by visiting the health check endpoint:
https://gr.yourdomain.com/v1/healthYou should receive:
- HTTP Status:
200 OK - Response Body:
{"status":"ok"}
If you see an error or timeout, your DNS hasn’t propagated yet. Wait a bit longer and try again.
- HTTP Status:
-
Update Your Growl Script
Once DNS verification is successful, add the
data-growl-api-hostattribute to your Growl script tag:<scripttype="text/javascript"src="https://cdn.withgrowl.com/ads.js"data-growl-publisher-id="YOUR_PUBLISHER_ID"data-growl-api-host="gr.yourdomain.com"></script> -
Deploy and Test
Deploy your updated code and verify that:
- Ads are loading correctly
- No console errors appear
- Network requests are going to your custom domain