Mixpanel Community Icon

How to Cancel a Time Event in JavaScript Without Tracking

·
·

how do I cancel them time_event in js ? I have already call .time_event(event_name), then just wanna cancel the timer without going with .track(event_name). Is there any function for this issue?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi Lily S., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    I apologize, but based on the knowledge sources provided, there is no specific information about canceling a time_event in the JavaScript SDK for Mixpanel without calling track(). The documentation only mentions starting a timer with timeEvent() and then tracking the event to record the duration.The Mixpanel SDKs: Javascript section shows how to use timeEvent(), but does not mention a way to cancel it: LBKS// start the timer for the event "Image Upload" mixpanel.timeEvent("Image Upload");LBKS// 20 seconds later...LBKS// track "Image Upload" event // "Duration" event property set to 20 mixpanel.track("Image Upload");LBKSIf you need to cancel a time_event without tracking it, you may want to consider reaching out to Mixpanel's support for more specific guidance, as this functionality is not documented in the provided knowledge sources.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.