angulartics2 12.0.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/esm2020/providers/pyze/pyze.mjs +7 -7
- package/fesm2015/angulartics2.mjs +6 -6
- package/fesm2015/angulartics2.mjs.map +1 -1
- package/fesm2020/angulartics2.mjs +6 -6
- package/fesm2020/angulartics2.mjs.map +1 -1
- package/package.json +3 -2
- package/providers/incendium/README.md +100 -0
- package/providers/pyze/pyze.d.ts +2 -2
@@ -1373,8 +1373,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImpor
|
|
1373
1373
|
class Angulartics2Pyze {
|
1374
1374
|
constructor(angulartics2) {
|
1375
1375
|
this.angulartics2 = angulartics2;
|
1376
|
-
this.angulartics2.setUsername.subscribe((x) => this.
|
1377
|
-
this.angulartics2.setUserProperties.subscribe(x => this.
|
1376
|
+
this.angulartics2.setUsername.subscribe((x) => this.setUserProfile(x));
|
1377
|
+
this.angulartics2.setUserProperties.subscribe(x => this.updateUserProfile(x));
|
1378
1378
|
}
|
1379
1379
|
startTracking() {
|
1380
1380
|
this.angulartics2.pageTrack
|
@@ -1404,9 +1404,9 @@ class Angulartics2Pyze {
|
|
1404
1404
|
}
|
1405
1405
|
}
|
1406
1406
|
}
|
1407
|
-
|
1407
|
+
setUserProfile(userId) {
|
1408
1408
|
try {
|
1409
|
-
PyzeIdentity.
|
1409
|
+
PyzeIdentity.setUserProfile(userId);
|
1410
1410
|
}
|
1411
1411
|
catch (e) {
|
1412
1412
|
if (!(e instanceof ReferenceError)) {
|
@@ -1414,9 +1414,9 @@ class Angulartics2Pyze {
|
|
1414
1414
|
}
|
1415
1415
|
}
|
1416
1416
|
}
|
1417
|
-
|
1417
|
+
updateUserProfile(properties) {
|
1418
1418
|
try {
|
1419
|
-
PyzeIdentity.
|
1419
|
+
PyzeIdentity.updateUserProfile({}, properties);
|
1420
1420
|
}
|
1421
1421
|
catch (e) {
|
1422
1422
|
if (!(e instanceof ReferenceError)) {
|