GithubHelp home page GithubHelp logo

greenstick / interactor Goto Github PK

View Code? Open in Web Editor NEW
197.0 10.0 52.0 78 KB

Front-End Code for Tracking Interactions and Conversions on Websites.

Home Page: http://greenstick.github.io/interactor/

License: BSD 2-Clause "Simplified" License

JavaScript 100.00%
utility interaction-design conversion-tracking front-end

interactor's People

Contributors

gdarko avatar greenstick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

interactor's Issues

Delegated event

Hi,

i found a small problem with your lib when a dom element is created after dom ready.
It is impossible to track it so you need to crate a delegated event

For exemple for the conversion capture:

// Set Conversion Capture
        if (interactor.conversions === true) {
            for (var i = 0; i < interactor.conversionEvents.length; i++) {
                var ev      = interactor.conversionEvents[i];

                document.querySelector('body').addEventListener(ev, function (e) {
                    e.stopPropagation();
                    if(e.target.classList.contains(interactor.conversionElement)){
                        interactor.__addInteraction__(e, "conversion");
                    }
                });
            }
        }

I need an example on when the DOM changes after DOM ready

Hi,
So I'm trying to use the code but I have so many elements that load after DOM ready. And there previous issue didn't explain things well to me. Could you please show me how I could track for interations on DOM elements created after the initialisation

Is there any way to log this in console ?

I was trying to log the events in console , its not logging anything

and also there is one end point for event but when its sending events ? is there any another method to send the json , can is log the format in console ?

example doesn't work

No idea how to set this up. More thorough documentation and examples please.

Looks promising though!

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.