Coder Social home page Coder Social logo

Comments (4)

dominykas avatar dominykas commented on July 17, 2024

There's no support for the client side, but why would you use this in the browser instead of the real deal?

from universal-analytics.

adam-lynch avatar adam-lynch commented on July 17, 2024

I was wondering if this was possible too (with browserify instead of webpack). Why?

  • Our Web app exists in a NW.js desktop app (formerly node-webkit) so all URLs are file:// URLs and typical Google Analytics wouldn't work I'm told.
  • On the Web, our Web app exists on loads of subdomains (and even across a few domains) so using this might be easier than doing it with some hacked from of a GA snippet, if it's even possible.
  • Our Web app exists in Android & iOS apps in a WebView. Typical GA wouldn't work there either I'm told. We'd have to reach out of the WebView, call Java / Objective-C functions to send events to GA.

Even though with a typical GA Web set up, it would automatically track page views, etc. it still might be less hassle to manually send events to GA via this module (browserified). I.e. the same code for the Web, desktop and mobile.

from universal-analytics.

unindented avatar unindented commented on July 17, 2024

I have the same use case as @adam-lynch. Would replacing request with something like superagent solve this?

from universal-analytics.

mattdesl avatar mattdesl commented on July 17, 2024

There is also nets which uses request in Node, and xhr when browserified.

from universal-analytics.

Related Issues (20)

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.