How to create referral links different from the current page

By default, Maître uses the URL of the current page to create the referral link, but there might be situations where you might want your subscribers to share a different page.

Let's say for example that your widget is installed on the page mywebsite.com/competition, but you want your subscribers to share the URL mywebsite.com.

To solve this problem you just need to tell Maître the correct URL in the settings by using the "host" property, as shown in the snippet below:

<script type="text/javascript">
  window.Maitre = {
    uuid: "MFXXXXXX",
    host: "http://mywebsite.com"
  };
</script>

From now on Maître will generate referral links using this URL instead of the current page.

Things to know

  • Since Maître tracks referrals using the parameter in the URL, make sure you install Maître on mywebsite.com as well. Otherwise, your subscribers will never be able to track referrals.
  • Please bear in mind that this hack will work for future referral links. However, existing referral links won't be changed.

Still need help? Contact Us Contact Us