HTML / Script Tag
The simplest way to install DataSaaS. Works with any HTML website.
1
Get your tracking snippet
After adding your website in DataSaaS, you'll receive a personalized snippet. It looks like this:
html
<script
defer
data-website-id="mrf_abc123def456"
data-domain="yourdomain.com"
src="https://yourdomain.com/js/script.js"
></script>2
Add it to your site
Paste the snippet inside the <head> tag of your HTML, before the closing </head>:
html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My Website</title>
<!-- DataSaaS Analytics -->
<script
defer
data-website-id="mrf_abc123def456"
data-domain="yourdomain.com"
src="https://yourdomain.com/js/script.js"
></script>
</head>
<body>
...
</body>
</html>3
Verify
Visit your website and check your DataSaaS dashboard. You should see your visit appear within seconds.