Entwickler können die CozyCal Javascript API verwenden, um auf bestimmte Ereignisse zu reagieren.

javascript
// Add this code after the CozyCal script tag
<script>
window.onCozyCalLoaded = function (CozyCal) {
    console.log('CozyCal loaded');

    CozyCal
        .on('show', function () {
            console.log('opened');
        })
        .on('hide', function () {
            console.log('hidden');
        })
        .on('page_view', function (pageData) {
		        // To receive this event, make sure you
            // have set the domain where you installed CozyCal.
            //
            // Booking Page -> Share button -> Add to website 
            // -> Javascript API -> Set installed URL
            console.log('page_view', pageData);
        })
        .on('scheduled', function (guest) {
            // To receive the guest data, make sure you
            // have set the domain where you installed CozyCal.
            //
            // Booking Page -> Share button -> Add to website 
            // -> Javascript API -> Set installed URL
            //
            // This is to ensure that guest data is 
            // only sent to verified domains.
            console.log('scheduled', guest);
        });
};
</script>
← Zurück zu Installieren & Einbetten

Brauchen Sie weitere Hilfe? Schreiben Sie uns an support@cozycal.com.

Erhalten Sie noch heute mehr Buchungen online!

Genießen Sie eine 10-tägige kostenlose Testphase mit allen Funktionen. Keine Kreditkarte erforderlich.
10-tägige kostenlose Testphase starten