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?
Is it at all possible to propagate custom event properties through other events, such as email opens?
Hi
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.
Best,
Brian
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.
— 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:
https://www.klaviyo.com/blog/klaviyo-event-properties-sms-email
You could then fetch an array of the properties for all the events of the metric for a given profile.
![Academy Student - 1 Badge](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/b8dc3931-d263-4af8-a078-1d93afd10378_thumb.png)
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 😉
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. https://www.klaviyo.com/email/flow/VLfHZb/content)
- update a profile property when someone click an email link: https://help.klaviyo.com/hc/en-us/articles/115005255248
This would let you quickly look at a profile and see if they’ve clicked a specific link.
![Academy Student - 1 Badge](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/b8dc3931-d263-4af8-a078-1d93afd10378_thumb.png)
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.
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.
![Academy Student - 1 Badge](https://uploads-us-west-2.insided.com/klaviyo-en/attachment/b8dc3931-d263-4af8-a078-1d93afd10378_thumb.png)
Thanks
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.