Coder Social home page Coder Social logo

Comments (4)

jtillmann avatar jtillmann commented on July 17, 2024

Of course it is, but I assume you want the visitor's user agent?

In Express you could use something like this:

visitor.set('ua', req.headers['user-agent']);

from universal-analytics.

SimonVillage avatar SimonVillage commented on July 17, 2024

We are developing an electron app so the user-agent should be always the same or am I wrong?

from universal-analytics.

jtillmann avatar jtillmann commented on July 17, 2024

I wasn't aware you're talking about an Electron app. I'm not sure if the UA should always be the same.

I'm not sure if process.platform +' '+ require('os').release() will result in a User Agent string that GA will process.

You should know best how to access Electron's User Agent from within the app. You can directly pass that to the ua parameter.

from universal-analytics.

freiSMS avatar freiSMS commented on July 17, 2024

Hello, I am facing a similar problem. I want to set the userAgent in a way that GA will extract OS and Browser from it. @SimonHausdorf when I try to use your version all ua traffic is mapped to the browser field. Did you get this working? Thanks

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.