Prerequisites
- A Siteline website key
- A backend capable of making outbound HTTP requests
Endpoint
Parameters
The full URL of the page being accessed (e.g.
https://yoursite.com/blog/post).The
User-Agent header from the incoming request.The
Referer header from the incoming request. Pass an empty string if none.The visitor’s IP address.
Your Siteline website key.
Example
Best practices
- Track key pages only — blogs, landing pages, product pages,
robots.txt,sitemap.xml - Skip static assets — images, CSS, JS, fonts don’t need to be tracked
- Fire-and-forget — don’t await the response; send tracking calls asynchronously for zero impact on site speed
- URL-encode all parameters — especially
urlanduserAgentwhich may contain special characters
Troubleshooting
Requests not appearing in Agent Analytics
Requests not appearing in Agent Analytics
Verify that all required parameters are present and URL-encoded. Check that your
websiteKey is correct.Where do I find my website key?
Where do I find my website key?
Navigate to Agent Analytics in your Siteline workspace and click Manage Configuration to view or regenerate your key.
Should I track every request?
Should I track every request?
No. Focus on content pages that AI bots are likely to crawl. Exclude static assets and internal API routes.