By default, the redirect-after-booking feature can only accept one URL, and isn't customizable on a service or staff level. However with a few clever tricks we can get this functionality.

Redirect Variables


The crux of what we're doing is taking advantage of the fact that the redirect URL can have variables in it that will be swapped out right before the user is redirected to the URL. Here's an example:

https://www.mycompany.biz/thank-you/{{booking.service.id}}.html

If you were to use that as your redirect URL, the {{booking.service.id}} would be replaced with the unique identifier (explanation of IDs below) for the service right before the user is redirected. Here is an example where the service booked had an identifier of 9989:

https://www.mycompany.biz/thank-you/9989.html

And on that page you would have a custom thank you message for users that booked that service.

Finding the Service/Member ID


To find the ID for a service or member, login to Appointlet and edit the service/member you want to get the ID for. Once you are on the edit page, look in the URL for the number at the end:

Bit.ly


If you have complete control of your website and can create pages with any URL, the example above will work fine. But what if we want to send the user to one domain for a specific service, and another domain for a different service? To do this we will use the URL shortener bit.ly.

To start, sign up for an account at https://bitly.com. After signing up, you should be presented with a dashboard similar to this:


Let's start by shortening our first thank you page URL. 

Click "Create Bitlink" in the top right:

You should see a screen like this:

Enter your URL where it says to Paste Long URL - in this screenshot we have entered https://appointlet.com/thank-you/.  Then click Create.

The next screen will give you options to edit your new bitlink:

Before you save this we first need to put our custom URL shortcode:

In the "customize" field we need to put in our custom short URL code:


Optionally you can add a title so that you can easily track which Bitlink is which.

A few very important things to note here:

  • Swap the "9910" for the actual service ID you obtained when logged into Appointlet.
  • Whatever you write before the service ID ("appointlet_service_" in this example) will need to remain consistent for all other shortened URLs).

Great, now click "Save" and we should be set:



At this point you'll want to repeat the URL shortening process for every thank you page you having, ensuring that you use the service ID that is meant to be associated with that page. Once you are done creating all of the URLs, we'll need to go back to Appointlet, click "Settings" in the top left, then open the "Redirect" tab and populate the URL:



Notice that we used the "appointlet_service_" prefix and then the {{booking.service.id}} variable. At this point you should have everything setup to handle different thank you pages for different services.

Did this answer your question?