I am working on a mobile application (Sitecore 9.1, JSS React Native) with a couple of pages. A page event is assigned to each of the mobile application pages. I have enabled indexing anonymous contacts and I am sending back and forth all the cookies that I receive from the layout service endpoint.
When closing the application I call abandonsession.aspx
pages as described here to flush the interaction(s) to xConnect and xDB
but when I open Experience Profile the only one interaction that I see is the page visit of abandonsession.aspx
, no other page visits, no page events or goals.
(I am sending the cookies to the abandonsession.aspx
as well)
Am I missing something?
How should I flush my contact data to xConnect and xDB?
I assume that assigning goals and page events with JSS is the same as in a normal case scenario. Is that a correct assumption?
http://my-react-native-host.com/sitecore/api/layout/render/jss?item=[page path here]&sc_apikey=[jss api key here]
This will verify that requests to Layout Service are being tracked properly and help eliminate something on the Sitecore side as a potential issue.