Newly Practicing Mortician

    @jitsu/eventnative
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.7 • Public • Published

    EventNative JavaScript Library

    EventNative is an open source, high-performance event collection service. Read more:

    Install

    npm install --save @jitsu/eventnative or yarn add @jitsu/eventnative

    Usage

    Full version of JavaScript integration can be found here. A simplified version is presented below

    import eventN from '@jitsu/eventnative';
    
    // initialization
    eventN.init({
        "key": "<if key>", //api
        "tracking_host": "<tracking host>",
        "segment_hook": if eventN should listen to Segment's analytics.js events,
        "ga_hook": if eventN should listen to Google Analitics event
    });
    
    // push user info
    eventN.id({ ...user properties}); 
    
    // push event
    eventN.track('pageview');

    Keywords

    none

    Install

    npm i @jitsu/eventnative

    DownloadsWeekly Downloads

    24

    Version

    1.1.7

    License

    none

    Unpacked Size

    45.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • absorbb
    • jitsuhq
    • vklmn