@nodeart/session-flow
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@nodeart/session-flow", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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", |
@@ -14,3 +14,3 @@ import {Injectable} from "@angular/core"; | ||
isMobile: boolean; | ||
reffererUrl: string; | ||
visitedRoute: Subject<VisitedRoute> = new Subject<VisitedRoute>(); | ||
@@ -23,2 +23,3 @@ click: Subject<UserClick> = new Subject<UserClick>(); | ||
constructor(private router: Router){ | ||
this.reffererUrl = document.referrer; | ||
this.createDeviceId(); | ||
@@ -25,0 +26,0 @@ this.createSessionId(); |
7197
158