Created
March 18, 2019 19:42
-
-
Save Osmosis311/a1da67c2c4a6dc26469bcd4048216a67 to your computer and use it in GitHub Desktop.
Inject IM Tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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