Chatbot
Settings

Tracking Scripts

2min

Tracking scripts is a JS script that is read after the chatbot collected a lead.

How can I redirect the user to a webpage after collecting the lead?

To redirect the user to another page after the user leaves his contact details, you can add this code to the tracking script field, under Webhooks and integrations.

Change the URL accordingly:

JS




CRM Integrations

if you have a CRM integration, you might want to consider waiting a bit before the task proceeds. This way you will guarantee that the information had 'time' to get to the CRM. Read more below.

If you want the user to wait for a bit, just try adding a setTimeout:

JS


Don't forget to change the URL accordingly, you can also change the timeout (now it will redirect after 2 seconds).