Dokumentation
Bläddra i dokumentationen

Add Privatus Analytics to Hostinger Website Builder

Add privacy-friendly analytics to a Hostinger Website Builder site with the Custom code field in Integrations, then update the site.

Visa som Markdown
  1. In the builder click More (the three dots) and open Integrations.
  2. Paste the snippet into Custom code:
html
   <script defer src="https://privatusstats.com/js/pa.js" data-site="pa_YOURSITEID" data-modules="engage,auto,vitals,clicks,ask"></script>
  1. Save and update your website.

Custom code runs on the published site and in preview mode, not in the editor. Hostinger places <meta>, <link> and <style> tags in the head automatically. A <script> goes to the body unless it has the data-render-head attribute. The tracker works from either place.

If the site breaks after you add code, remove all snippets, republish and add them back one at a time.