getTimeToComplete Plugin is not working | Community
Skip to main content
ambikaTewari_ATCI
New Participant
Mar 12, 2024 6:10 PM UTC
Question

getTimeToComplete Plugin is not working

Hi Team,

 

I have defined 'getTimeToComplete' plugin in Adobe Analytics extension like this :

// Start the timer when the visitor initiates Merchant Process
if (s.events.indexOf("event139") > -1) getTimeToComplete("start");
// Stop the timer when the visitor makes a change and set eVar125 to the time difference between stop and start
if (s.events.indexOf("event112") > -1) s.eVar125 = getTimeToComplete("stop");

I have initialized the plugin also like this :

 

 

But I'm getting this console error :

 

 

 

is there anything I'm doing it wrong?

Any help on this would be really appreciated.

 

Thank you.

 

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

4 replies

ezhil_raja
Level 4
Mar 12, 2024 8:30 PM UTC

Please confirm if you have properly installed the plug-in using AppMeasurement.js after the Analytics tracking object is instantiated

Translate
ambikaTewari_ATCI
New Participant
Mar 26, 2024 11:10 AM UTC

yes I have installed it now as mentioned in help doc https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/plugins/gettimetocomplete and now it is workign corectly

Translate
Level 2
Apr 3, 2024 11:16 AM UTC

Hi @ambikatewari_atci , it seems like s.events is undefined. Can you check if s.events exists before calling indexOf function?

Translate