Chat Tracking | Community
Skip to main content
June 29, 2023
Solved

Chat Tracking

  • June 29, 2023
  • 1 reply
  • 831 views

Chat related data capturing in adobe datalayer like started, cancelled, time etc..,

 

We are capturing the "chat timestamp in eVar, event2 for started and event3 for cancelled.

1) how can i check that how much time as spent by user on single chat?

 

2) If i missing something, please guide in proper way to colleting the data and making reports?

 

Thank you very much!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

You could try Adobe's getTimeBetweenEvents plugin:

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/gettimebetweenevents.html?lang=en

 

Or potentially the getTimeToComplete:

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/gettimetocomplete.html?lang=en

 

getTimeBetweenEvents relies on have custom events, which you have... so that shouldn't be a problem. The alternate getTimeToComplete gives you a more manual start/stop control...

 

I would start with getTimeBetweenEvents and see if that works for you.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 29, 2023

You could try Adobe's getTimeBetweenEvents plugin:

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/gettimebetweenevents.html?lang=en

 

Or potentially the getTimeToComplete:

https://experienceleague.adobe.com/docs/analytics/implementation/vars/plugins/gettimetocomplete.html?lang=en

 

getTimeBetweenEvents relies on have custom events, which you have... so that shouldn't be a problem. The alternate getTimeToComplete gives you a more manual start/stop control...

 

I would start with getTimeBetweenEvents and see if that works for you.

July 3, 2023

Hi @jennifer_dungan , Thanks for reply

 

Present implemented like

example- 
Time stamp (v46)       Started(e15)        Cancelled(e16)
1002                          1                          0
12000                        0                          1

 

your suggesting to getTimeBetweenEvents extension.

 

As per my understaning, need to store timestamp in events and time spent on chat will store in eVar46. 

Started(e15) 

Cancelled(e16) 

 

eVar46 = Started(e15) - Cancelled(e16)

 

I am in right direction? if not can you please explain little bit more about it.

 

Thanks!

 

 

 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 3, 2023

Hi, you shouldn't need to store timestamps in your events.... when the events are triggered there is already a system level timestamp associated to them...

 

This plugin should automatically do the math for you between event15 and event16... 

 

 

There are several examples in the documentation that show some of the options, including if the timer should reset if your first event is triggered again (without getting to the second event, and other potential events that can trigger a reset, or customizing the cookie to use to maintain the timer between sessions, etc).

 

Since your implementation is fairly simple... start and end help chat, you should only need the simplest version of the code:

 

s.eVar46 = getTimeBetweenEvents("event15", true, "event16", true);

 

I've not actually used his plugin myself... I am just going by the documentation...  the fact that the format of the data could potentially change if not specified (as per above), you could make it a bit more absolute:

 

s.eVar46 = getTimeBetweenEvents("event15", true, "event16", true, "s_tbe", 0, "s");

 

This should force it to always be counted in seconds, and reset at the end of the session.