The addCruiseSearch
method passes information from your site to Monetate when a customer searches for a cruise. This method consists of six optional attributes:
dtBegin
— A string that includes the cruise start date in YYYYMMDD formatdtEnd
— A string that includes the cruise end date in YYYYMMDD formatport
— A string that includes the cruise's port of departuredest
— A string that includes the cruise's port of destinationduration
— An integer that includes the cruise's duration in daysship
— A string that includes the name of the cruise ship
Code Sample
// addCruiseSearch Method window.monetateQ = window.monetateQ || []; window.monetateQ.push(['addCruiseSearch', { // Optional 'dtBegin': ['20160601'], // June 1, 2016 'dtEnd': ['20160605'], // June 5, 2016 'port': ['Port Royal'], 'dest': ['Tortuga'], 'duration': [5], 'ship': ['The Black Pearl'] }]); window.monetateQ.push(['trackData']);