|
| 1 | +Nudge (Actions) Destination |
| 2 | +--- |
| 3 | + |
| 4 | +{% include content/plan-grid.md name="actions" %} |
| 5 | + |
| 6 | +[Nudge](https://nudgenow.com/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="_blank”} is an AI personalization platform for marketing teams for enabling rapid personalization experimentation and for autonomously delivering 1:1 user experiences. |
| 7 | + |
| 8 | +This destination is maintained by the Nudge Developer Team. For any issues with the destination, [contact the Support team ](mailto:[email protected]). |
| 9 | + |
| 10 | +## Getting started |
| 11 | + |
| 12 | +1. From your workspace's [Destination catalog page](https://app.segment.com/goto-my-workspace/destinations/catalog){:target="_blank”} search for "Nudge". |
| 13 | +2. Select **Nudge** and click **Add Destination**. |
| 14 | +3. Select an existing Source to connect to Nudge (Actions). |
| 15 | +4. Go to the [Nudge dashboard](https://dashboard.nudgenow.com){:target="_blank"}, and navigate to the **Settings** page. |
| 16 | +5. Go to the **Secret Keys** section and click on the **Create new secret key** button. |
| 17 | +6. Give appropriate name for the key, select the **Backend API** option from the permissions dropdown and create the key. |
| 18 | +7. Copy the generated key and store it somewhere safe for future reference. |
| 19 | +8. Enter the generated API key in the **Nudge** destination settings in Segment. |
| 20 | + |
| 21 | +## Supported methods |
| 22 | + |
| 23 | +Nudge (Actions) Destination currently supports the Identify and Track methods listed below in accordance to the core Segment Specs. Reference: [Spec Overview](https://segment.com/docs/connections/spec/) |
| 24 | + |
| 25 | +### Identify |
| 26 | + |
| 27 | +The Identify method lets you create or update a user in Nudge’s backend. Every Identify call should include a `userId`. See Segment's Spec for Identify for any reference: [Identify Spec](https://segment.com/docs/connections/spec/identify/) |
| 28 | + |
| 29 | +**Example (using Segment's Analytics.js SDK)** |
| 30 | + |
| 31 | +```js |
| 32 | +analytics.identify('user123', { |
| 33 | + firstName: 'Alice', |
| 34 | + lastName: 'Smith', |
| 35 | + |
| 36 | + company: 'Acme Corp', |
| 37 | + employees: 150 |
| 38 | +}); |
| 39 | +``` |
| 40 | + |
| 41 | +How Nudge handles Identify calls: |
| 42 | + |
| 43 | +* If `userId` does not exist, the request would throw a 400 validation error as it is a required field. |
| 44 | +* If `userId` already exists, Nudge merges or overwrites profile properties with the latest values. |
| 45 | +* Identify calls without `userId`, or with only `anonymousId`, are dropped. |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +### Track |
| 50 | + |
| 51 | +The Track method sends custom events and their properties into Nudge. You must include `event` name in every Track call so events can be associated with the correct user. See Segment's Spec for Track for any reference: [Track Spec](https://segment.com/docs/connections/spec/track/) |
| 52 | + |
| 53 | +**Example (using Segment's Analytics.js SDK)** |
| 54 | + |
| 55 | +```js |
| 56 | +analytics.track('Product Viewed', { |
| 57 | + product_id: 784, |
| 58 | + product_sku: 'SH#79817' |
| 59 | +}); |
| 60 | +``` |
| 61 | + |
| 62 | +How Nudge handles Track calls: |
| 63 | + |
| 64 | +* Segment ensures the `userId` is attached to the Track call for a previously successful Identify. |
| 65 | +* Events without a valid `userId` or with only `anonymousId` are dropped. |
| 66 | +* All other event properties are ingested as event metadata and can be used for trigger conditions. |
| 67 | + |
| 68 | + |
| 69 | +{% include components/actions-fields.html %} |
| 70 | + |
| 71 | +## Troubleshooting |
| 72 | + |
| 73 | +### 1. Events not showing up in Nudge |
| 74 | + |
| 75 | +* **Missing or invalid API key** |
| 76 | + Ensure that the API key you generated under **Settings → Secret Keys → Backend API** is correctly entered in your Segment destination settings. |
| 77 | +* **Dropped Identify/Track calls** |
| 78 | + Calls without `userId`, or with only `anonymousId`, are automatically dropped. Verify your mapping includes the correct identifier field. |
| 79 | + |
| 80 | +### 2. Timestamp or date format errors |
| 81 | + |
| 82 | +Nudge expects all date/time properties in UTC ISO-8601 format (Javascript Date object's ISO format). If you see failed events due to timestamp validation: |
| 83 | + |
| 84 | +* Confirm you’re sending dates like `"2025-05-14T07:30:00Z"`. |
| 85 | +* Remove any timezone offsets other than `Z` (UTC). |
| 86 | + |
| 87 | +### 3. Validation failures |
| 88 | + |
| 89 | +If requests continue to fail after checking your API key and payload: |
| 90 | + |
| 91 | +* Compare against Nudge’s specification from the documentation: [https://docs.nudgenow.com/](https://docs.nudgenow.com/). |
| 92 | +* Ensure all required fields (e.g., `userId`, `event` name for Track) are present and correctly typed. |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +*If you still encounter issues, please reach out to the Nudge Developer Team or email [[email protected]](mailto:[email protected]). * |
0 commit comments