Skip to main content

I am attempting to use the integrations object to filter which identify and track messages are sent to my Customer.IO destination. The reason I want to send a subset of these messages is to avoid creating a Customer.io ‘person’ for every identify call.

I am not sure exactly what to put in as the key value where I have CustomerIO here:

curl -X POST https://api.segment.io/v1/track \
-H "Content-Type: application/json" \
-d '{
"writeKey": "'$WRITE_KEY'",
"messageId": "track-john-test-'$COUNTER'",
"timestamp": "'$TIMESTAMP'",
"userId": "'$USERID'",
"integrations": {
"All": false,
"CustomerIO": true
},
"event": "'$EVENT'"
}'

Should I have { “integrations” : { “Customer.io Dev” }} which is the name of the specific destination? I think not, as the integration filtering is “applied to all instances of the destination” (from https://segment.com/docs/guides/filtering-data/).
Should it be `actions-customerio`, as this is the slug displayed in the URL when accessing this destination?

 

Hi ​@John Murfett - looks like you might be using the customer.io actions destination. If this is the case, the integrations object would be any of the following: “Actions Customerio”, or “Customer.io Actions”, or “Customer.io (Actions)”. Let me know if this answers your questions. Also linking out docs on the customer.io actions here.

 


Thanks Chauntel! 

I ended up adding a property to the context: `context.routeToCustomerIo` in my segment events that I wanted to route to CustomerIO, and added a filter to the Customer.io destination to “Only Send Event” if “Event Field” context.routeToCustomerIo “is true”.

I did this instead of using the integrations object because the default for the integrations object is { “All”: true }, so I would have had to update every single other event to have { “Actions Customerio”: false} to prevent all other the events flowing to CustomerIo. I did not want to alter every other source, and would not be able to ensure every future new event has “Actions Customerio”: false.

Thanks for replying so prompty. Impressive.

Cheers


Reply