website logo
⌘K
Getting started
Create your Serviceform account
Pixel
Your Dashboard
Conversational tools
Serviceform glossary
FAQs
Cookies
GA 4 and DataLayer
Send events into GA4 from DataLayer
Cookie controller
Website analytics (Insights)
Custom event tracking
Chatbot
Design your chatbot
Build your chatbot
Settings
Preview your chatbot
Install your chatbot
Duplicate your chatbot
Translate your chatbot
Facebook Chatbot
Advanced
Live chat
Livechat teams
Trigger your livechat
Set hours
Desktop notifications
SMS notifications
Livechat in Serviceform App
Talk with the clients
Popup
Create your first popup
Popup type settings
Popup content
Popup design
Thank you page
Tracking and advanced settings
Language
Install your popup
Leadbar
Create your Lead bar
Types of Bars
Form
Build your form
Question types
Settings and design
Custom CSS & JS
Install your form
Emails
Install tools
Insights
Website analytics
Flow statistics
Live chat statistics
Ourly Calendar
Setup Ourly
Events
Sync Calendar
Email signature
Add email signature to Gmail
Social Inbox
Connect Facebook and Instagram
Meta Business Suite
Integrations
Sending lead via Webhooks
Google Analytics
Zapier and Webhooks
HubSpot with Zapier webhooks
Collect payments with Stripe
Leads
Filter leads
Export leads as XLS
Account
Settings
Change password
Plan settings and invoice history
Docs powered by archbee 
3min

Tracking Scripts

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

Updated 08 Mar 2022
Did this page help you?
Yes
No
UP NEXT
Preview your chatbot
Docs powered by archbee 
TABLE OF CONTENTS
How can I redirect the user to a webpage after collecting the lead?
CRM Integrations