ngx-segment-analytics icon indicating copy to clipboard operation
ngx-segment-analytics copied to clipboard

Calling service.user() or id() doesn't work

Open ugran opened this issue 5 years ago • 1 comments

Hi guys,

When I inject SegmentService in a component and call this.segment.id() or this.segment.user() it throws following error:

TypeError: this.w.analytics.id is not a function at SegmentService.push../node_modules/ngx-segment-analytics/index.js.SegmentService.id (index.js:201)

Identify() & page() work.

Do I do something wrong, or is it broken?

ugran avatar Jul 12 '19 20:07 ugran