Filter Selective Destinations while Sending Events

Filter selective destinations while sending your event data via RudderStack.

This guide covers how to filter events to specific destinations while sending them via RudderStack.

Overview

RudderStack lets you send your event data only to specific destination or a set of destinations by filtering out the rest. You can do this by passing an integrations object in the options parameter of your event method.

See the following guides for the SDK-specific documentation and examples:

Filter events to specific destinations

The following example demonstrates how to send an event only to HubSpot and Intercom using the JavaScript SDK:

rudderanalytics.identify(
  "1hKOmRA4GRlm", {
    email: "alex@example.com",
    name: "Alex Keener",
  }, {
    integrations: {
      All: false,
      "HubSpot": true,
      "Intercom": true,
    },
  }
)

Note that:

  • All is always set to true unless explicitly set to false — this means RudderStack sends the event to all destinations by default.
  • All: false instructs RudderStack to not send the event to all destinations.

Disable events for specific destinations

You can also disable sending event data to specific destinations. In this case, RudderStack sends the event data to all other destinations except the specified ones.

rudderanalytics.identify(
  "1hKOmRA4GRlm", {
    email: "alex@example.com",
    name: "Alex Keener",
  }, {
    integrations: {
      "HubSpot": false,
      "Intercom": false,
    },
  }
)

In the above code snippet, RudderStack will send the event data to all destinations except HubSpot and Intercom.

Destination naming convention

To filter events to specific destinations, you must specify the exact destination names. Go to the destination’s page in the RudderStack dashboard to get the name.

warning

The destination name in the integrations object is case sensitive — it should match the name exactly as displayed in the RudderStack dashboard. It should not be the name that you assigned to the destination while setting it up in RudderStack.

Examples

This section lists some sample events sent from a different SDKs to the specified destinations.

In the above examples, RudderStack SDKs send the track events only to the Amplitude and Intercom destinations.



Questions? Contact us by Email or on Slack