Open mrcwinn opened 9 years ago
Could you please attach a link to a repo with a reproduction? No one else has reported this issue.
We're having the same problem, I believe it's related to analytics-node, the APIs for their client and server APIs are different.
On server it expects an object with the event
property as its only parameter.
analytics.track({
userId: '019mr8mf4r',
event: 'Purchased an Item',
properties: {
revenue: 39.95,
shippingMethod: '2-day'
}
});
vs
analytics.track('Signed Up', {
plan: 'Startup',
source: 'Analytics Academy'
});
I got the same issue. @billyvg your answer is correct. Tracking on the server has a slightly different API. The docs should mention this.
Yep. Server side uses syntax for [https://segment.com/docs/libraries/node/](NodeJS Library)
I have the same issue, can you tell me how did you solve it?
The problem is also present with the identify
method.
How about the package exposes a method that would then use Meteor.isServer
to decide, how to pass the data on to analytics.js
or analytics-node
?
I'm still getting this error when using the track
method. Is this still an open bug? I'm using analytics-node npm package.
Using
Meteor 1.1.0.2
and package1.2.2_1
As soon as I attached a simple
analytics.page()
call toRouter.autoRun
every request triggers anAssertionError
.