LetMeAllez guide
To help ease the transition to Stay22’s Allez product from your existing deep link integration, we’re providing a tiny script that will transform all compatible links into Stay22’s Allez links. This is a drop-in script, meaning you just drop it in your <head>
or bottom of <body>
and it will automatically work!
Features
- All the Allez features
- Does NOT permanently change your links. This is simply running on the client after the page is loaded. In case you want to revert, kindly remove the script and recover the links :)
- Automatically inserts helpful campaignIds for you per page
- Supports for short links, dns links, or hidden/obfuscated links.
- Attempts to fix your broken links and 404s using direct supplier APIs. Because every link and click counts.
- Also supports to be installed on gTag manager
Adding letmeallez.js to your site
To install the script tag, copy the following code and paste it anywhere in the <body>
or <head>
tag on every page you need to transform the links (technically you should only need to install it ONCE globally in your footer or header file). You can even have it pasted through your Google tag manager.
Don’t forget to plug in your AID inside the script, in between the quotes! If you don’t have one, login or register your account: https://hub.stay22.com/
<!-- Let me Allez (letmeallez.js) - Stay22 -->
<script>
(function (s, t, a, y, twenty, two) {
s.Stay22 = s.Stay22 || {};
// Just fill out your configs here
s.Stay22.params = {
aid: "YOUR_AID_GOES_HERE_INSIDE_QUOTES",
};
// Leave this part as-is;
twenty = t.createElement(a);
two = t.getElementsByTagName(a)[0];
twenty.async = 1;
twenty.src = y;
two.parentNode.insertBefore(twenty, two);
})(window, document, "script", "https://scripts.stay22.com/letmeallez.js");
</script>
The script above is all you need to get those links changed automatically!
If you have Allez links already set up, this won’t affect them and we recommend using Stay22’s Allez links going forth in tandem.
Advanced Parameters to customize your LetMeAllez Script
Below table lists out the advanced parameters that you can use to customize your LetMetAllez script to your needs.
Param name | Value | Description |
---|---|---|
deepStruct | List of specific link formats for LMA script to look out for, each one wrapped in quotations. If there are more than one, separate them with a comma. | Support for short links, dns/pretty links or hidden/obfuscated links. When used, LMA will look for the specifically listed link format provided. It is recommended that if you use short linking that you activate this parameter to ensure we aren’t missing your links. |
excludes | List specific suppliers in quotations and if there are more than one, separate them with a comma. | Forgoing suppliers When used, LMA will ignore the listed suppliers and will not convert their links. |
preserveCampaign | false (default) / true | Keeping Your custom campaignIDs in your supplier links
When set to true, your custom campaignID used in your original supplier links will be saved as one of the campaignIDs. NOTE: this param will only work for Booking.com links
|
Advance parameters can all be used together at once or individually as needed.
// Just fill out your configs here
s.Stay22.params = {
aid: "YOUR_AID_GOES_HERE_INSIDE_QUOTES",
excludes: ["vrbo", "tripadvisor"],
preserveCampaign: true,
deepStruct: [
"tkqlhce.com/",
"prettydomain.com/go"
]
};
-
booking
-
expedia
-
vrbo
- incl. abritel
- incl. fewo-direkt
- incl. stayz
- incl. bookabach
-
tripadvisor
-
hotelscombined
-
hotelscom
-
kayak
- incl. momondo
- incl. cheapflights
- incl. swoodoo
- incl. checkfelix
- incl. mundi
-
trivago
Redirecting Rules
- Hotelscombined links will be redirected to booking.com
- Everything else will be redirected to its respective supplier’s website
- If the link is broken, we will attempt to fix it using the supplier’s API or fallback to search results
- We always optimize for geographical location of the user (e.g: if you’re in the UK, we’ll redirect you to the UK version of the supplier’s website even if your link is originally from the US)
Pop
Feedback & Tech support
Stay22 hasn’t been too long around and we’re still learning! So we’re looking for any type of comments and feedback to improve it. Email us at inbound@stay22.com.
For immediate assistance, use the chat bubble in the bottom right corner weekdays 9-5 ET.