@reservamos/browser-analytics 1.1.5-alpha.0 → 1.1.6-alpha.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/CHANGELOG.md +10 -1
- package/README.md +5 -5
- package/dist/browser-analytics.cjs +1 -1
- package/dist/browser-analytics.cjs.map +1 -1
- package/dist/browser-analytics.d.ts +12 -12
- package/dist/browser-analytics.esm.js +5 -5
- package/dist/browser-analytics.esm.js.map +1 -1
- package/dist/browser-analytics.iife.js +1 -1
- package/dist/browser-analytics.iife.js.map +1 -1
- package/package.json +1 -1
- package/src/events/purchaseConfirmation/purchaseConfirmation.test.ts +36 -23
- package/src/events/purchaseConfirmation/purchaseConfirmationSchema.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- Use taxonomy-consistent Title Case properties for `Purchase Confirmation Viewed`, including `Operation Id` instead of `order_number`.
|
|
6
|
+
|
|
7
|
+
## 1.1.5
|
|
8
|
+
|
|
9
|
+
- Migrate npm releases from long-lived token authentication to npm Trusted Publishing with GitHub Actions OIDC.
|
|
10
|
+
- Keep public package distribution on `registry.npmjs.org` with no installation changes required for consumers.
|
|
11
|
+
|
|
3
12
|
## 1.1.4
|
|
4
13
|
|
|
5
|
-
- Add `analytics.track.purchaseConfirmation` to send a `Purchase Confirmation Viewed` event when the confirmation or pending-payment page is viewed.
|
|
14
|
+
- Add `analytics.track.purchaseConfirmation` to send a `Purchase Confirmation Viewed` event when the confirmation or pending-payment page is viewed.
|
|
6
15
|
|
|
7
16
|
## 1.1.3
|
|
8
17
|
|
package/README.md
CHANGED
|
@@ -66,16 +66,16 @@ analytics.identify('main-identifier', {
|
|
|
66
66
|
|
|
67
67
|
## Tracking Purchase Confirmation
|
|
68
68
|
|
|
69
|
-
The `purchaseConfirmation` event reports that a purchase confirmation or pending-payment page was viewed, so the order can be joined back to the visitor's Mixpanel `distinct_id`. `
|
|
69
|
+
The `purchaseConfirmation` event reports that a purchase confirmation or pending-payment page was viewed, so the order can be joined back to the visitor's Mixpanel `distinct_id`. `Operation Id` and `Payment Status` (`'confirmed' | 'pending_pix'`) are required; `Payment Type` and `Total` are optional.
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
import analytics from '@reservamos/browser-analytics';
|
|
73
73
|
|
|
74
74
|
analytics.track.purchaseConfirmation({
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
'Operation Id': 'MOB-123456',
|
|
76
|
+
'Payment Status': 'confirmed',
|
|
77
|
+
'Payment Type': 'credit_card',
|
|
78
|
+
'Total': 199.9,
|
|
79
79
|
});
|
|
80
80
|
```
|
|
81
81
|
|