Comments (5)
so... that explains the divergent APIs i guess track({event: <event-name>, properties: <props>})
vs track(<event-name>, <props>)
... which is pretty much the opposite of what you want these days.
i got the links to this right off their website:
https://segment.com/docs/sources/website/analytics.js/#performance
https://segment.com/docs/sources/server/node/#development
their analytics.js pacakge doesn't seem to include any info on server-side integration.
i've only been playing with this thing for an hour or so, but it's not confidence inspiring :/
plus the thing strait throws an exception if the message doesn't validate... really really not what you want in an analytics library... errors should not stop the show. it's not really cool to crash the request because someone botched a variable in a tracking call.
from analytics-node.
HI,
I investigated this and found that this is an older library.
You can get away with generating a random userId of your own and using it.
There is no user() function in this library.
Hope it helps
Cheers
from analytics-node.
I agree.
It is sad to see such a tech based company not supporting simplest of platforms in use.
from analytics-node.
This is a server side library and does not store the anonymous ID. analytics.js is the client side library that does does store anonymous IDs https://segment.com/docs/sources/website/analytics.js/#retrieving-the-anonymous-id
from analytics-node.
Curious if there is a react-native implementation for getting the anonymous ID in segment/branch?
from analytics-node.
Related Issues (20)
- Bad Request (400) when batching HOT 1
- Flush on first message should be explicit configurable HOT 1
- analytics-node might cause an unhandledRejection HOT 13
- Should we switch to the `@segmentio/analytics-next` package? HOT 2
- Unhandled Promise Rejection Can Crash App HOT 10
- What does calling identify on the server actually do? HOT 5
- Areas for Performance Improvements
- Chrome extension background service worker + analytics-node = fail HOT 1
- Resolve vulnerability axios 0.21.4 HOT 2
- Including sentAt in the event payload of /v1/batch request makes specified timestamp ignored
- Not all sent 'track' events receive to the debugger tab of the source HOT 4
- Npm version update for Axios Version update HOT 1
- Support for other backend JS runtimes (Web Workers, Deno) HOT 6
- Support middleware functions HOT 8
- Typescript support HOT 6
- Cross-Domain Misconfiguration HOT 6
- `Analytics` intialization doesn't catch invalid/non-existent write key HOT 2
- Update axios to `1.6.0` to make it possible to get a security fix HOT 2
- Track call fails when property has bigint attribute
- context.device.token ignored HOT 1
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 analytics-node.