GithubHelp home page GithubHelp logo

isabella232 / event-sequence-timer-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from posthog/event-sequence-timer-plugin

0.0 0.0 0.0 528 KB

Time the time taken for a user to perform Event B after performing Event A.

License: MIT License

JavaScript 100.00%

event-sequence-timer-plugin's Introduction

Event Sequence Timer Plugin

Time the time taken for a user to perform Event B after performing Event A.

A property time_since_eventA will be added to eventB, with time measured in milliseconds.

Example Usage

Config

List of events to track time differences on

The list of events is specified as follows:

(eventA,eventB),(eventC,eventD),(eventA,eventD)

Where the first event in a tuple is the event that "starts the timer" and the second event being the one that "finishes it". In other words, the first event happens before the second.

Update timestamp on every new first event?

Default: Yes

If you select Yes, the stored timestamp for the first event will always be updated when a new event with the same name comes in (for the same user). This means your second event will always contain the difference between its time and the last time the user triggered the first event.

If you select No, the stored timestamp will only be set once and never updated. This means you will get the difference between the time of the second event and the first time the user triggered the first event.

Example 1:

Config

List of events to track time differences on: (eventA,eventB) Update timestamp on every new first event? Yes

User events

eventA at t=0
eventA at t=2
eventB at t=4

Result

eventB will come with a property time_since_eventA equal to 2.

Example 2:

Config

List of events to track time differences on: (eventA,eventB) Update timestamp on every new first event? No

User events

eventA at t=0
eventA at t=2
eventB at t=4

Result

eventB will come with a property time_since_eventA equal to 4.

event-sequence-timer-plugin's People

Contributors

yakkomajuri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.