---
title: addCruiseSearch
slug: js-api/addcruisesearch
description: Overview of the Monetate Travel API addCruiseSearch method and how to use it
image:  https://archbee-image-uploads.s3.amazonaws.com/ceIfEvQHzQk1IVxoRWUh7/K9eTL4jKm7UQINb6zNziJ-20250912-181225.png
docTags: 
createdAt: 2024-04-30T19:44:13.795Z
---

:::hint{type="warning"}
This method call is only available to clients using the [Monetate Travel API](docId\:vhdqXHIQl8l4Mfz6YjkVB).
:::

:::CodeblockTabs
addCruiseSearch Method

```javascript
// addCruiseSearch Method
window.monetateQ = window.monetateQ || [];
window.monetateQ.push(['addCruiseSearch', {
  // Optional
  'dtBegin': ['20160601'], // June 1, 2026
  'dtEnd': ['20160605'], // June 5, 2026
  'port': ['Port Royal'],
  'dest': ['Tortuga'],
  'duration': [5],
  'ship': ['The Black Pearl']
}]);
window.monetateQ.push(['trackData']);
```
:::

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 format
- `dtEnd` — A string that includes the cruise end date in YYYYMMDD format
- `port` — A string that includes the cruise's port of departure
- `dest` — A string that includes the cruise's port of destination
- `duration` — An integer that includes the cruise's duration in days
- `ship` — A string that includes the name of the cruise ship

:::hint{type="info"}
Although none of these attributes are required, you should use as many as possible to unlock the best results for your cruise search targets.
:::

