@blinkdotnew/sdk 0.10.0 → 0.10.2
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 +7 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -597,6 +597,13 @@ blink.analytics.clearAttribution()
|
|
|
597
597
|
|
|
598
598
|
// Features: Privacy-first, offline support, event batching, session management
|
|
599
599
|
// Attribution: UTM params persist across sessions for conversion tracking
|
|
600
|
+
|
|
601
|
+
// How UTM persistence works:
|
|
602
|
+
// 1. User visits with ?utm_source=google&utm_campaign=summer_sale
|
|
603
|
+
// 2. These params are saved to localStorage for attribution
|
|
604
|
+
// 3. Future events (even days later) include these UTM params
|
|
605
|
+
// 4. Perfect for tracking which campaigns drive conversions
|
|
606
|
+
// 5. New UTM params override old ones (last-touch model available)
|
|
600
607
|
```
|
|
601
608
|
|
|
602
609
|
### Realtime Operations
|
package/dist/index.js
CHANGED
|
@@ -2865,7 +2865,7 @@ var BlinkNotificationsImpl = class {
|
|
|
2865
2865
|
if (!params.to || !params.subject || !params.html && !params.text) {
|
|
2866
2866
|
throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
|
|
2867
2867
|
}
|
|
2868
|
-
const response = await this.httpClient.post(
|
|
2868
|
+
const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
|
|
2869
2869
|
if (!response.data || typeof response.data.success !== "boolean") {
|
|
2870
2870
|
throw new BlinkNotificationsError("Invalid response from email API");
|
|
2871
2871
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2863,7 +2863,7 @@ var BlinkNotificationsImpl = class {
|
|
|
2863
2863
|
if (!params.to || !params.subject || !params.html && !params.text) {
|
|
2864
2864
|
throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
|
|
2865
2865
|
}
|
|
2866
|
-
const response = await this.httpClient.post(
|
|
2866
|
+
const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
|
|
2867
2867
|
if (!response.data || typeof response.data.success !== "boolean") {
|
|
2868
2868
|
throw new BlinkNotificationsError("Invalid response from email API");
|
|
2869
2869
|
}
|
package/package.json
CHANGED