Dokumentaatio
Selaa dokumentaatiota

Add Privatus Analytics to Bubble

Add privacy-friendly analytics to a Bubble app through the header script field in Settings, and count single-page navigation once per page.

Näytä Markdown-muodossa
  1. In the Bubble editor open the Settings tab and go to SEO and metatags in the Web app section.
  2. Under Advanced settings, paste the snippet into Script/meta tags in header:
html
   <script defer src="https://privatusstats.com/js/pa.js" data-site="pa_YOURSITEID" data-modules="engage,auto,vitals,clicks,ask"></script>
  1. Deploy your app to live.

Single-page navigation#

Bubble apps update the page without a full reload when you use the Go to page action on the current page. The tracker follows history.pushState navigations by default (data-spa="auto"), so each page counts once. See single-page apps.

The page-level Page HTML Header field only affects one page. Use the Settings field above to cover every page.