Prerequisites
- A Siteline website key
- A backend capable of making outbound HTTP requests
Endpoint
Body 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.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
- Keep sensitive fields out of URLs — send
websiteKeyand IP data only in the JSON body
Troubleshooting
Requests not appearing in Agent Analytics
Requests not appearing in Agent Analytics
Verify that all required body fields are present. Check that your
websiteKey is correct and that the request includes Content-Type: application/json.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.