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?