Los desarrolladores pueden usar la API de Javascript de CozyCal para activar acciones en ciertos eventos.

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>
← Volver a Instalar e insertar

¿Aún necesitas ayuda? Escríbenos a support@cozycal.com.

¡Empieza a recibir más reservas en línea hoy!

Disfruta de una prueba gratuita de 10 días con todas las funciones. No se requiere tarjeta de crédito.
Iniciar Prueba Gratuita de 10 Días
Contáctenos