HTML
Open the HTML file for your site and paste the tag just before the closing head tag.
index.html
<head>
<meta charset="utf-8" />
<script defer src="https://web-analytics-backend-api.traffsite.com/script.js" data-website-id="YOUR-WEBSITE-ID"></script>
</head>