Comments (11)
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.
@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 ua
method/the constructor.
visitor = ua('UA-XXXXX-Y', req.cookies.uuid);
visitor.pageview(req.url).send()
from universal-analytics.
What about my error? mine is in the right place :) thanks for the help.
from universal-analytics.
That's why my other two questions were meant for you :)
from universal-analytics.
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.
@jtillmann Doh! Thank you for your very prompt response :-)
from universal-analytics.
Does someone has experienced my problem and can help me with this?
Thank you I appreciate it ^_^
from universal-analytics.
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.
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.
It looks like yours is not a UUID v4 which Google Analytics requires. Could this be the reason it is ignored?
from universal-analytics.
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)
- Ad tracking? HOT 1
- Vulnerability in "request" sub-package HOT 6
- Typescript support? HOT 1
- How to mark event as "User" (raising login event won't mark thing as user) HOT 1
- Custom dimensions with E-commerce tracking HOT 1
- GA + UA HOT 2
- 'Cannot read properties of undefined (reading '_readableState')' error occurred after 0.5.0 update HOT 2
- Payload data sent as object not working HOT 2
- IP not being assigned when using a proxy HOT 2
- Requests are being ignored by GA HOT 5
- Support for Event Values as String HOT 4
- Analytics no longer sent since upgrade from 0.4.23
- Transaction is not reflected being reflected on GA dashboard HOT 2
- Transactions are not being reflected on GA dashboard HOT 3
- Custom dimension and Event data not matching
- Universal Analytics Deprecation HOT 3
- Active users count differently with and without `strictCidFormat`
- Yarn problem with WebpackEncore
- Separate License file?
- Using HTTP proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal-analytics.