<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=412158892933457&amp;ev=PageView&amp;noscript=1">
Skip to content
English
  • There are no suggestions because the search field is empty.

Customise the Redirect URL After a Package on Embed Widgets

 

Overview

This feature allows users to customise the redirect URL after a package or membership purchase through V2 Embed Widgets. While the default redirect URL set in the Hapana V2 Admin remains in place, businesses can now define a specific redirect URL within the embed widget, offering greater control over the customer’s post-purchase journey.

Key Benefits

1. Tailored Post-Purchase Experience

  • Businesses can redirect customers to custom thank-you pages with promotional content based on the package they purchased.

2. Greater Flexibility & Control

  • The redirect-url parameter in the embed widget ensures customers are taken to a designated page instead of relying solely on the default admin settings.

3. Seamless Integration for Promotional Campaigns

  • Gyms and studios can enhance marketing efforts by guiding customers to targeted landing pages immediately after purchase.

 


How It Works

Case 1: No Redirect URL Attribute Added (Default Behaviour)

Example Widget:

<hapana-widget data-type="packages" widget-id="XXX" package-id="" variant=""></hapana-widget> 
<script src="https://widget.hapana.com/hapana_widget.js"></script>

Flow:

  • If the redirect-url attribute is not added, the page will redirect according to the URL set in the Brand's Admin configuration.

    • Contact Support or your Account Manager to have a your standard redirect URL configured.

  • If no redirect URL is configured in the Brand’s Adminno redirection will occur after purchase.

 

Case 2: Custom Redirect URL Added

Example Widget:

<hapana-widget data-type="packages" widget-id="XXX" redirect-url="https://hapana.com" package-id="" variant=""></hapana-widget>
<script src="https://widget.hapana.com/hapana_widget.js"></script>

Flow:

  • When the redirect-url parameter is added with a valid URL, the customer will be redirected to the specified URL following a purchase. In the this example, that URL would be https://hapana.com.

  • This overrides any default redirect URL set in the Brand’s Admin configuration.

 

Case 3: Empty Redirect URL Parameter

Example Widget:

<hapana-widget data-type="packages" widget-id="XXX" redirect-url="" package-id="" variant=""></hapana-widget>
<script src="https://widget.hapana.com/hapana_widget.js"></script>

Flow:

 

  • If the redirect-url parameter is added but left empty, no redirection will take place after purchase.

  • This setting overrides any redirect URL configured in the Brand’s Admin, ensuring no redirection occurs.

 

Example Configurations

Custom Redirect URL Admin Redirect URL Desired Output
https://hapana.com https://google.com https://hapana.com
https://hapana.com Empty https://hapana.com
Set to Blank https://google.com No redirect
Set to Blank Empty No redirect
Attribute not present https://google.com https://google.com
Attribute not present Empty No redirect
 
  Best Practices
  • Ensure URLs are correctly formatted and accessible to prevent broken redirects.

  • Use campaign-specific URLs to improve marketing engagement and conversion rates.

  • Leverage the widget transition feature to maintain a smooth user experience within the app.

 

This update provides greater flexibility to optimise the post-purchase journey, helping businesses improve customer engagement and drive conversions.