Get your tracking script
First, retrieve your personal tracking script from the bchic dashboard.
- Open Settings (gear icon bottom left).
- Navigate to Tracking → Setup.
- Copy the displayed script tag with your website ID.
Add script to your layout
Depending on your ASP.NET version, you’ll integrate the script differently:
ASP.NET MVC / .NET Core
Open your central layout file (usuallyViews/Shared/_Layout.cshtml) and add the script in the <head> section:ASP.NET Web Forms
Open your master page (usuallySite.Master) and add the script in the <head> section of the <asp:Content> area:ASP.NET Core Razor Pages
OpenPages/Shared/_Layout.cshtml and add the script:Deploy and verify
- Save your changes and deploy your application.
- Open your website in a browser.
- Check in the bchic dashboard under Live → Active Visitors to see if your visit was tracked.
cloud.bchic.de/api/send was successfully sent (Status 202).Advanced Configuration
Track custom events
In addition to page views, you can track custom events like button clicks or form submissions:Single Page Application (SPA) support
If you’re running an ASP.NET Core app with a frontend framework like React or Vue.js, you need to manually track page views when the URL changes:Content Security Policy (CSP)
If you’re using a Content Security Policy, add bchic to your allowed domains:Web.config or Startup.cs:
Exclude development environment
To disable tracking onlocalhost or in development environments, use a Razor condition:
Common Issues
Script doesn’t load
- Check if the
data-website-idis correct (no spaces, no trailing slash). - Make sure no firewall or ad blocker is blocking the script.
- Check the browser console (F12) for JavaScript errors.
No data in dashboard
- Wait 1-2 minutes after the first visit for data to be processed.
- Make sure the script is in the
<head>, not at the end of<body>. - Verify your website is publicly accessible (not behind VPN/firewall).
POST requests are blocked
If you’re usingAntiForgeryToken or CSRF protection, make sure external POST requests to cloud.bchic.de are not affected. bchic sends tracking data via POST, but these don’t require CSRF tokens.
Privacy & Compliance
bchic Analytics is fully GDPR-compliant without cookies or consent banners:- No cookies → No consent required
- No IP storage → Anonymization through hashing
- Servers in Germany (Hetzner Falkenstein)
- No third-country transfer → No US cloud
Support
If you need help with the integration or have questions about your specific ASP.NET setup, feel free to reach out:- Email: support@bchic.de
- Chat: Directly in the dashboard (icon bottom right)

