Marketing: redirects

Please note: the article below can be shared with the marketing agency or web developer you work with and serves as an instruction.

If you have a Pro account, you have the option to set up redirects. This makes it possible to refer customers to your own thanks page after purchasing a product and to track the conversion (e.g. via Google Analytics, Google Tag Manager or Facebook)

Important: when setting up your marketing tooling, keep in mind that trainin.app is an external domain, just like a payment provider.

 

To set up a redirect after purchasing a product, you can do the following:

1. Set redirect parameter

You can add a query string with a redirect parameter on a checkout-link (link to product checkout page), the general shop page, or widget-link (if you have integrated schedule/planning or shop on your site).

Example 1 - checkout page link:

Suppose the product checkout page link is the following URL:

https://yourcompany.trainin.app/checkout/P1234

You can then set up a redirect by simply adding a query string with the redirect parameter to the URL and indicating to which site the redirect should take place:

https://yourcompany.trainin.app/checkout/P1234?redirect=trainin.com

 

Example 2 - checkout page link:

Customers see the roster through the following widget link provided in the iframe:

https://yourcompany.trainin.app/widget/schedule

You can then set up a redirect by simply adding a query string with the redirect parameter to the URL and indicating to which site the redirect should take place:

https://yourcompany.trainin.app/widget/schedule?redirect=trainin.com

 

2. Create the correct url

Make sure you create the correct URL when you add a query string with a redirect parameter to a URL. The URL must be encoded with the correct parameters or the redirect will not work. You can do this for example viahttps://www.urlencoder.org.

 

Example 1:

When you only add ?redirect=trainin.com, the URL will be as shown above:

https://yourcompany.trainin.app/checkout/P1234?redirect=trainin.com

Example 2:

When you add ?redirect=trainin.com/thankyou/, the URL becomes:

https://yourcompany.trainin.app/checkout/P1234?redirect=trainin.com%2Fthankyou%2F

As you can see the "/" is converted to %2F. If the redirect URL contains other characters, such as "=" or "&", these will also be converted.

NB:

Do not use https:// in the redirect parameter, we automatically prefix it.

Wrong: https://trainin.com/thankyou/

Good: trainin.com/thankyou/


Are you already using one querystring?

If you already use a query string with parameters in the URL, just add the redirect parameter with a &.

 

3. Optional: Use extra placeholders

You have the option to use placeholders in the redirect so that you can track even more specifically or create a thank you page. For example, you can create a thank you page for a trial lesson and redirect to it.

You can use the following parameters:

  • {orderId}

  • {orderName}

  • {orderAmountInVat}

  • {orderAmountExVat}

  • {orderAmountVat}

  • {productId}

  • {productName}

  • {promoCode}

  • {businessId}

  • {businessName}

This way you can create different URLs and you can use multiple parameters in a URL. For example, if you want to track a specific product, you can create the following links:

  • yourcompany.com/thankyou/{productName}

  • yourcompany.com/thankyou?product_id={productId}

  • yourcompany.com/thankyou?utm_content={promoCode}

The business parameters can be interesting if you have multiple locations.

Note: create the correct URL again for this and keep in mind that a parameter can also be empty (for example, can occur with a discount code)