Skip to content

Instantly share code, notes, and snippets.

@Osmosis311
Created March 18, 2019 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Osmosis311/a1da67c2c4a6dc26469bcd4048216a67 to your computer and use it in GitHub Desktop.
Save Osmosis311/a1da67c2c4a6dc26469bcd4048216a67 to your computer and use it in GitHub Desktop.
Inject IM Tag
window.IntentMediaProperties = {
site_type: 'DEMO_SITE',
page_id: 'hotels.list', /* Unique and mandatory for each page */
travel_date_start: '20190520', /* YYYYMMDD */
travel_date_end: '20190528', /* YYYYMMDD */
trip_type: 'roundtrip', /* Valid values :roundtrip,oneway,multicity */
travelers: '3', /* Total number of travelers (adults+children) */
adults: '1', /* Number of adults */
children: '2', /* Number of children */
site_language: 'en', /* Two letter ISO language code for the page */
site_country: 'US', /* ISO country code for the page */
};
(function() {
var script = document.createElement("script");
script.src = "http://a.cdn.intentmedia.net/javascripts/v1/intent_media_core.js";
document.getElementsByTagName("head")[0].appendChild(script);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment