Coder Social home page Coder Social logo

Comments (11)

dwest-ee avatar dwest-ee commented on July 17, 2024

I am also seeing this. Every pageview is tracked as a new active user.

visitor.pageview(req.url, req.cookies.uuid).send();

from universal-analytics.

jtillmann avatar jtillmann commented on July 17, 2024

@cedriking I'm a bit confused by the usage of local storage in your code — we are talking server-side code here. Correct? Apart from that, how does your uuid look like exactly?

@dwest-ee I believe you are using the UUID at the wrong place. It is not the second argument to the pageview method, but the second argument to the uamethod/the constructor.

visitor = ua('UA-XXXXX-Y', req.cookies.uuid);
visitor.pageview(req.url).send()

from universal-analytics.

 avatar commented on July 17, 2024

What about my error? mine is in the right place :) thanks for the help.

from universal-analytics.

jtillmann avatar jtillmann commented on July 17, 2024

That's why my other two questions were meant for you :)

from universal-analytics.

 avatar commented on July 17, 2024

Oh didnt noticed that :P I'm using node-webkit, so yes its node but my app is frontend not backend, so the clientID is always for example: c3576400-71d3-11e4-9365-415cca89d494 because of the localstorage, it's stored there, so everytime I open the app, Google Adsense should get that I'm that same userID.

Everything else is working, but the sessions in google analytics, last week I've got 300+ active users, can't be, its just me :P

from universal-analytics.

dwest-ee avatar dwest-ee commented on July 17, 2024

@jtillmann Doh! Thank you for your very prompt response :-)

from universal-analytics.

 avatar commented on July 17, 2024

Does someone has experienced my problem and can help me with this?
Thank you I appreciate it ^_^

from universal-analytics.

jtillmann avatar jtillmann commented on July 17, 2024

First of all, could you check if the cid parameter is correctly sent and remains the same? (Either using debug mode or by analyzing the arguments provided to the callback when using the other way to send the request)

from universal-analytics.

 avatar commented on July 17, 2024

Hello :)
I've tested with debug and It sending the correct UID

[universal-analytics] Enqueued event ({"ec":"Device info","ea":"Version","el":"0.0.1","v":"1","tid":"UA-XXXX-Y","cid":"c3576400-71d3-11e4-9365-415cca89d494","t":"event"}) 

from universal-analytics.

jtillmann avatar jtillmann commented on July 17, 2024

It looks like yours is not a UUID v4 which Google Analytics requires. Could this be the reason it is ignored?

from universal-analytics.

 avatar commented on July 17, 2024

I had installed node-uuid but used it the wrong way, the problem seems to be solved, thank you very much! the UUID was wrong, that was the problem 👍

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.