analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Broken `analytics-node` initialization in `analytics-plugin-segment`

Open shapel opened this issue 1 year ago • 1 comments

Hello @DavidWells , First of all, thank you for your effort in creating such a library 💪

Looks like analytics-plugin-segment is broken for nodejs as it use wrong initialization for analytics-node at https://github.com/DavidWells/analytics/blob/master/packages/analytics-plugin-segment/src/node.js#L48

image

By the way analytics-node is deprecated so we could switch to maintained one @segment/analytics-node https://segment.com/docs/connections/sources/catalog/libraries/server/node/migration/

PS Feel free to ping me if you would like me to create PR with such changes.

shapel avatar Jun 05 '24 10:06 shapel

Probably related, but I can confirm that >=2.0.0 of @analytics/segment doesn’t work (not sending any analytics to Segment), but version 1.1.4 does work.

cbaker6 avatar Jul 15 '24 00:07 cbaker6