- 08 Dec 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Dynamic URL Redirect to Customer Portal
- Updated on 08 Dec 2020
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
This article explains how to include a dynamic URL redirect in your RetentionEngine. The most common use case for this Dynamic URL Redirects are directing customers back to a specific page in their account.
In this example, we'll demonstrate how to build the URL to take the customer to their individual customer portal in ReCharge.
This feature is currently only available for Relevant Information cancel resolutions.
Step 1. Build the Redirect URL with variable names.
A. Copy the URL of the desired redirect location
Here is a URL of a customer's subscription management portal:
https://bellwethr-recharge-test.myshopify.com/tools/recurring/portal/8d4317123730e239/subscriptions?
B. Find the Customer ID in URL
The only variable we need to locate for this example is the Customer ID.
Looking at the URL, The Customer ID is the long string of characters - 8d4317123730e239
C. Add {Customer_ID} Variable to the original URL
We will replace that string with a variable in curly brackets, i.e. {customer_ID}
Making the URL for the RetentionEngine something like this:
https://bellwethr-recharge-test.myshopify.com/tools/recurring/portal/{customer_ID}/subscriptions?
Step 2. Adding the link to a Relevant Information Cancel Resolution
We'll now add this URL to the desired Relevant Information Cancel Resolution.
Open the Cancel Resolution, and simply paste the URL in the "Button Link" field.
Step 3. Edit RetentionEngine Code Snippet to include the new variable.
Under the "Settings" tab in the RetentionEngine dashboard, you will now need edit your RetentionEngine Code Snippet to include any additional variables (i.e. the {customer_ID} variable we just added in the previous step).
Here is a walkthrough video to guide you through this step:
If you'd like a team member to help you set this up, feel free to reach out to us at support@bellwethr.com.