@nodeart/session-flow
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@nodeart/session-flow", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "1. Set device Id\r 2. Set session Id\r 3. Track visited routes of user\r 4. Track user clicks\r 5. Detect mobile device", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -17,2 +17,3 @@ import {Injectable} from "@angular/core"; | ||
click: Subject<UserClick> = new Subject<UserClick>(); | ||
userId: string; | ||
@@ -23,2 +24,3 @@ private lastRoute: string = '/'; | ||
constructor(private router: Router){ | ||
this.userId = 'guest'; | ||
this.reffererUrl = document.referrer; | ||
@@ -25,0 +27,0 @@ this.createDeviceId(); |
7242
160