# 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).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.calcumate.co/calculator-data-extraction/method-2-subscribe-to-the-calculator-event.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
