Is it at all possible to propagate custom event properties through other events, such as email opens?

  • 5 December 2023
  • 7 replies

Badge +2

I have a metric triggered flow set up that will trigger an email based on a custom event. I would like to be able to associate subsequent actions with that event. For example, let’s say the event is posted with an attribute “mySpecialID” with value 1234.

The email is then sent from the triggered event.

Is there any way for me to be able to see `”mySpecialID”: “1234”` in the data for the `Received Email`, `Opened Email`, `Clicked Email`, etc. events?


Best answer by Brian Turcotte 5 December 2023, 17:48

View original

7 replies

Userlevel 7
Badge +35

Hi @kristinab!

At this time, attribute information about the triggering event of a flow is not available in the deliverability/performance metrics of the message. However, I will definitely forward this as a Product Request internally on your behalf.




Userlevel 4
Badge +6

To follow up on Brian’s note, you can get the ID of the flow, for example, that triggered the email. It is returned in the event properties when you call Get Events:

"Campaign Name": "Abandoned Cart: Email 1",

"$flow": "SbpWYd",

If you know the metric that triggered the flow — Checkout Started in this case — you could find the events for this metric for the profile in question — e.g.,"QhyxVR"),equals(profile_id,"01H105A9SB52KBSK23XTDZYXQQ")

— and then get the properties of the event that triggered the flow.

There’s also this blog post showing how to use webhooks to save properties of events to profile properties:

You could then fetch an array of the properties for all the events of the metric for a given profile.

Badge +2

Thanks for the responses!

I have been experimenting with webhooks and profile properties - but that doesn’t give the exact result I’m looking for when it comes to cleanly attributing outcomes of messages (e.g. clicks) to the initial triggering event. 

Just wanted to make sure there wasn’t a possibility I hadn’t explored yet 😉

Userlevel 4
Badge +6

What sort of custom event is this? That might help guide another approach. Is it an event that a profile might have often, or more a “one-off” sort of event?

Two additional possible approaches, again neither of which will likely directly do what you’re looking for.

  • in the flow triggered on the custom event, use a webhook to set a profile property that has the property or properties from the event, along with the ID of the email about to be sent (you can get the email ID by editing the URL and fetching it from the URL, e.g.
  • update a profile property when someone click an email link:
    This would let you quickly look at a profile and see if they’ve clicked a specific link.
Badge +2

It’s an event created purely for the purposes of triggering personalized sends with some dynamic content (passed as attributes of the event) - since a flow is the only way to trigger a send for an individual customer via API. 

It is expected that a profile may have this event often. They might even get a message from the same template with a different subject line. 

Userlevel 4
Badge +6

Hi, we’ll add it as a feature request for our product managers, to be able to associate email events (e.g. Clicked Email) with the event that triggered the flow that sent the email.

For now, you’ll have to use one of the approaches in this thread.

Badge +2

Thanks @saulblum! It’s more of a ‘nice to have’ than a necessity for my purposes, but I do appreciate you creating a product request.