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.
@@ -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.setUserId(x));
1377
- this.angulartics2.setUserProperties.subscribe(x => this.postTraits(x));
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
- setUserId(userId) {
1407
+ setUserProfile(userId) {
1408
1408
  try {
1409
- PyzeIdentity.setUserIdentifier(userId);
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
- postTraits(properties) {
1417
+ updateUserProfile(properties) {
1418
1418
  try {
1419
- PyzeIdentity.postTraits(properties);
1419
+ PyzeIdentity.updateUserProfile({}, properties);
1420
1420
  }
1421
1421
  catch (e) {
1422
1422
  if (!(e instanceof ReferenceError)) {