Take control of your client journey by learning how to redirect clients to a specific website or landing page after they complete an action in the client portal. This setup allows you to effectively track your Google and Facebook ads by directing users to dedicated success pages for booking and form submissions.
By using Google Tag Manager, you can bypass the standard "success" page and guide your clients to a custom URL of your choice.
Retrieve Your Live Site URL
Before starting the setup in Google Tag Manager, you must identify your business page URL.
- Open the platform.
- Click Lead Capture.
- Click Business Page.
- Locate and copy the URL listed under the "Live Site URL" section.
Create a Custom Trigger
A trigger tells Google Tag Manager when to execute your redirect.
First, set up a test environment
- Open Google Tag Manager and click Preview.
- Paste your Live Site URL into the field and click Connect.
- Verify that a pop-up appears stating "Connected".
Now your test Environment is set up. You can close the windows.
Set up your Trigger
- In the navigation menu, click Triggers.
- Click New.
- Click the name field in the top corner and enter a name, such as "Redirect to my website".
- Click the pencil icon in the center of the screen to edit the trigger configuration.
- Scroll down to Other, and select Custom Event as the trigger type.
- In the "Event Name" field, paste the specific event you wish to track, such as "scheduling_booking_success".
- Click Some Custom Events.
- Set the parameters for when the trigger should fire, such as "Event", "Contains", and "scheduling_booking_success".
- Click Save in the top corner to save the trigger.

Configure the Redirect Tag
The tag defines the action that occurs once the trigger fires.
Google Tag Manager Setup Instructions
Create a New Tag:
Go to Google Tag Manager > Tags > New.
Name your tag (e.g., Redirect).
Configure the Tag:
Click Tag Configuration and select Custom HTML.
Note: the following HTML snippet is provided for example purposes only. Please consult a Tag Manager expert or developer to customize your code. You will need to update the website listed below and the parameters after "?" if you want to include and append them.
<script>
(function() {
var destination = "https://betterwebsitetoday.com";
var existingParams = window.location.search;
// Quick-append parameter check
if (existingParams && existingParams.length > 1) {
destination += existingParams;
} else {
destination += "?utm_source=facebook&utm_medium=email&utm_campaign=summer%20sale";
}
// Instantly replace top window location
if (window.top) {
window.top.location.replace(destination);
} else {
window.location.replace(destination);
}
})();
</script>Paste the script provided above into the HTML box.
Set Up the Trigger:
Click Triggering.
Select the trigger you created in the previous section.
Click Add.
Click Save.
Test and Publish Your Changes
Testing ensures the redirect works correctly before it goes live for your clients.
- Click Preview in GTM to test that navigating to the page triggers the redirect correctly.
- Enter your LiveSite Business Page URL
- Click Connect to open your site.
- Complete the action in the client portal that should trigger the redirect, such as booking an appointment.
- Confirm that the browser redirects you to the selected website or performs the action defined in your HTML.
- Return to Google Tag Manager and click Publish.
Frequently Asked Questions
Q: Where do I find the URL for my business page?
In the platform, navigate to the Lead Capture menu and select Business Page to find your Live Site URL.
Q: Can I redirect clients after they book an appointment?
Yes, you can use the event name "scheduling_booking_success" in your trigger configuration to redirect clients after a successful booking.
Q: What happens if I do not click the Submit button in Google Tag Manager?
If you do not click SUBMIT, your changes will not be published and the redirect trigger will not fire.
Q: Can I use this method to redirect after a contact form is submitted?
Yes, you can create a trigger using the specific event name for form submissions to redirect clients to a thank you page.
Q: Do I need to write my own HTML for the redirect tag?
Yes, you will need to provide a small snippet of HTML or JavaScript in the Custom HTML tag to tell the browser where to go.
Q: Is it possible to track multiple different events with redirects?
Yes, you can set up multiple tags and triggers within Google Tag Manager, each corresponding to a different event in the platform. This allows for unique redirects for bookings, payments, or form completions.
Related to