Giter VIP home page Giter VIP logo

tracker's Introduction

#Weba javascript tracker

Build Status CircleCI Coverage Status Dev dependencies license

Part of weba.io application responsible for tracking visitors.

##Documentation

You can read documentation here.

##Browser support

Weba tracker is working in browser with ecmascript5 support. We are using Saucelabs for checking compatibility. Currently the minimal requirements for browsers we can find on grid:

Build Status

##Licence

License can be found here.

##Authors

See the list of contributors.

tracker's People

Contributors

marnits avatar michalsikora avatar zientalak avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tracker's Issues

IP Anonymization

For some cases tracker should have an option to send information about ip anonymization

Add support to track multiple tracker id from one snippet

Currently we have snippet with hardcoded tracker id

<script type="text/javascript">
    (function (w, d, t, g, u) {
        w[g]=w[g]||function(){(w[g].q=w[g].q||[]).push(arguments);};
        var tag=d.createElement('script');
        tag.async=true;tag.src=u+'?g='+g+'&t='+t;
        var s=d.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(tag, s);
    }(window, document, 'WEBA-0001', 'weba', '//example.com/path.to.tracker.js'));
</script>

And the thing is to remove tracker id from snippet eg: 'WEBA-0001' and move logic outside.
Below one of possibilities to implement:

weba('create', {
    name: 'firstTracker',
    trackerId: 'WEBA-01'
});
weba('firstTracker.send', {
    event: 'pageView'
});

weba('create', {
    name: 'secondTracker',
    trackerId: 'WEBA-02'
});
weba('secondTracker.send', {
    event: 'pageView'
});

For one tracker it should work like this:

weba('create', {
    name: 'onlyOneTracker',
    trackerId: 'WEBA-01'
});
weba('send', {
    event: 'pageView'
});

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.