Your cart is currently empty!
Insert this code immediately under the Calendly embed code in your web page. You must change the destination URL highlighted below to the page of your choice.
<!-- Insert after your Calendly embed code -->
<script type="text/javascript">
window.addEventListener('message', function(e) {
if (e.data.event && e.data.event === 'calendly.event_scheduled') {
window.location.href = 'https://example.com/your/page';
}
</script>
This JavaScript snippet listens for a specific message from the Calendly embed indicating that a meeting has been successfully scheduled. Once that event is detected, it automatically redirects the user to a confirmation page.
window.addEventListener('message', function(e) {...})
e.data.event === 'calendly.event_scheduled'
window.location.href = 'https://example.com/your/page';
This works with Calendly’s inline embed, popup widget, or popup text link.
Sign into your Calendly account, click your calendar, and go to More Options. Scroll down to Confirmation Page and ensure that After booking is set to Display confirmation page. It should not be set to Redirect to external site.
For example, if you are using WordPress, then sign into WordPress and navigate to the page or post containing Calendly.
In WordPress, Calendly is typically embedded with an HTML block. On other platforms, search for “calendly” if you cannot find it. A typical Calendly embed code contains a <div>
and a <script>
tag.
Paste the redirection script immediately under the Calendly embed code. Be sure to update the target page with the correct URL of your confirmation page.
Always test to make sure the page is redirecting correctly.
Having trouble?
We complete tasks for you. Our goal is to offload your technical labor so you can focus on business and innovation.
$60
per hour
Fixed rate for all types of tasks.
No monthly charges.
Pay by the minute.
Leave a Reply
You must be logged in to post a comment.