> For the complete documentation index, see [llms.txt](https://help.calcumate.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.calcumate.co/calculator-data-extraction/method-2-subscribe-to-the-calculator-event.md).

# Method 2: Subscribe to the Calculator event

The calculator also fires an event that advanced customers can use to gain better control, access the data from the calculator, and tell tell the website what to do next.&#x20;

To use this method:&#x20;

1. [Login](https://help.calcumate.co/calculator-data-extraction/www.calcumate.co/login), open your desired calculator, and click "SHOW ADVANCED SETTING":

<figure><img src="/files/otZeFPFj0r0wTOU2bQyJ" alt=""><figcaption></figcaption></figure>

2. With the Advanced Settings, turn on "Disable CTA Redirection". This will prevent Calcumate from auto-redirecting to any CTA URLs, and instead hand control to your website after the Calcumate 'Booking' Javascript event fires. <br>
3. Listen to the following event:

```javascript
window.addEventListener('Booking', 
  (event) => {
     console.log(event);​

});

```

4. The event object contains all the detail of the calculation. Example:

<figure><img src="/files/NYcAz4ucscInFCnVjNll" alt=""><figcaption></figcaption></figure>

5. You can write code to tell your website what to do next. For example, you can use the data from the Booking event to determine where to send the user to next (and potentially pre-fill certain details such as the unit type the user requires).
