Dokumentation
Gennemse dokumentationen

Add Privatus Analytics to SavvyCal

Count SavvyCal bookings in your analytics by listening for the embed's scheduled event on your own website and sending a Booking event without personal data.

Vis som Markdown

SavvyCal's own booking pages don't take your scripts. Embed SavvyCal on your own site, add the snippet there, and count bookings from the event the embed sends.

  1. Add the Privatus Analytics snippet to the page that holds the embed:
html
   <script defer src="https://privatusstats.com/js/pa.js" data-site="pa_YOURSITEID" data-modules="engage,auto,vitals,clicks,ask"></script>
  1. Add SavvyCal's embed script and an inline or popup embed, as described in Embedding links on your website.
  2. Listen for the event SavvyCal dispatches on the window:
html
   <script>
     window.addEventListener('savvycal.scheduled', function () {
       window.privatus && privatus.track('Booking');
     });
   </script>

SavvyCal dispatches savvycal.scheduled when someone schedules a time on an embedded booking. The Booking event needs no properties, and it never includes a name or email address.