Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Email linked to particular Journey

Avatar

Level 2

Hi,

 

I would like to create a segment for users who have received the email linked to particular journey.

What attributes are needed? What dataset are they in?

 

thank you very much.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@user36079 

The below query gives the number of distinct profiles that entered the given journey in the given time frame.

SELECT count(distinct _experience.journeyOrchestration.stepEvents.profileID)
FROM journey_step_events WHERE _experience.journeyOrchestration.stepEvents.journeyVersionID = '<journeyVersionID>'
AND _experience.journeyOrchestration.stepEvents.nodeType='start'
AND _experience.journeyOrchestration.stepEvents.instanceType = 'unitary'
AND DATE(timestamp) > (now() - interval '<last x hours>' hour);

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@user36079 

The below query gives the number of distinct profiles that entered the given journey in the given time frame.

SELECT count(distinct _experience.journeyOrchestration.stepEvents.profileID)
FROM journey_step_events WHERE _experience.journeyOrchestration.stepEvents.journeyVersionID = '<journeyVersionID>'
AND _experience.journeyOrchestration.stepEvents.nodeType='start'
AND _experience.journeyOrchestration.stepEvents.instanceType = 'unitary'
AND DATE(timestamp) > (now() - interval '<last x hours>' hour);