CustomerJourney lastVisit doesn't exist for some orders

Solved
Highlighted
Tourist
4 0 1

Hi,

I'm trying to understand the lastVisit field of the CustomerJourney for an order in the GraphQL API.  For each order we can get the CustomerJourney preceding that order which includes following fields:

Screen Shot 2020-10-20 at 15.47.09.png

What I would expect here is that the firstVisit always matches the first moment from moments list, while the lastVisit always matches the latest moment from the moments list.

My main question is this: I noticed that if lastVisit is not empty, then the latest moment in the moments field matches the lastVisit, but sometimes the moments list is not empty, but the lastVisit field is. Does anyone know why this happens? Is this some bug or does it happen for specific cases?

 

Background problem: I would like to find the UTM tags in the last link that led to an order. The obvious thing was to check the lastVisit field and take the UTM tags from there, but than I noticed that this field is sometimes missing, even though there are some moments with UTM tags linked to that same order.

 

0 Likes
Highlighted
New Member
1 1 1

This is an accepted solution.

Found this answer which says that if a conversion happens on the first visit, its attributed to the firstVisit and not to the lastVisit.