Giter Site home page Giter Site logo

hook for tracking events about react-calendly HOT 4 CLOSED

tcampb avatar tcampb commented on July 20, 2024
hook for tracking events

from react-calendly.

Comments (4)

tcampb avatar tcampb commented on July 20, 2024 2

@jeetiss - CalendlyEventListener has been replaced by useCalendlyEventListener in version 4.0.0.

@Memogcia - now that the component has been converted to a hook I plan on looking into adding an option to scope the event listener to a specific scheduling widget.

Example:

<InlineWidget onDateAndTimeSelected={() => console.log('inline widget')} />
<PopupWidget onDateAndTimeSelected={() => console.log('popup widget')} />

The example above would allow you to determine which scheduling widget was used to select a date / time.

from react-calendly.

tcampb avatar tcampb commented on July 20, 2024 1

Hi @blessingonuoha,

Unfortunately, Calendly's embed api does not send the selected date time data.

To retrieve this data, you'd need to use a tool like cloakist to host the Calendly scheduling page without using an iframe. This would allow you to attach a javascript event listener to the scheduling page directly. An example video of what this looks like can be found here.

from react-calendly.

Memogcia avatar Memogcia commented on July 20, 2024

Maybe also find a way to differentiate between callers, like passing a custom Id or value to the Calendly component in order to distinguish the source, for example: a group of buttons that opens the widget of Calendly. Also get that "custom value" in the CalendlyEventListener.

from react-calendly.

blessingonuoha avatar blessingonuoha commented on July 20, 2024

Can we grab the value of the selected date and time using the onDateAndTimeSelected handler? If not, how can it be done? on the onDateAndTimeSelected handler, it comes with a payload but when the date and time is selected the object is still empty

from react-calendly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.