The 'identify' function of the Tracking Code API only stores the data in the tracker, so the data can only be passed when either of these two functions: trackPageView or trackEvent is call. Just to be sure, are you calling one of these functions?
Jul 10, 20199:03 AM - edited Jul 10, 201911:05 AM
Participant
How to identify contact in chat widget using a single-page application?
SOLVE
@WendyGoh Yes, my problem actually is that apparently it sometimes does not clear the information of an old user who entered the system even using the features as in the example below:
Is it normal for same user to sign in again and the conversation history remains even after using these commands? ( note: this has happened too) .
These features do not work correctly, sometimes it works sometimes dont work, could you tell me an alternative in pure javascript to force the call of these events or something similar?
"Note:widget.refreshwill not remove existing conversations that a page visitor has started in the widget."
and based on my testing, this is working as expected. The historical conversations will remain if we didn't do a page refresh.
In order to clear out existing conversations, you will need to call a page refresh e.g. document.location.reload(true). Can I check if you have called this method? If not, can you try this out and see if it works for you?