Script tag
Drop one line of HTML into your site head.
Server-side
POST events to the REST API from your backend.
Add the script
Paste the snippet below inside the <head> of every page you want to track. You can add it through your CMS's head-injection setting, a tag manager (Google Tag Manager, Segment, Tealium), or directly in your site's HTML / template.
<!-- datataste Analytics --> <script> window.dataLayer = window.dataLayer || []; window.DATATASTE_TRACKING_ID = 'YOUR_TRACKING_ID'; </script> <script src="https://datataste.ai/datataste-tracker.js" async></script> <!-- End datataste Analytics -->
Swap YOUR_TRACKING_ID for the property tracking ID shown in your datataste dashboard under Tracking code. It starts with dk_.
Server-side install
If your stack does the ingest from a server (Node, Bun, Deno, Go, Python), you can POST events directly to https://datataste.ai/api/events/ingest. See the Ingest endpoint reference for the full payload schema — coming soon.