@ordersune/crm-web-sdk 1.0.10 → 1.0.11
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/dist/web-sdk.d.ts +1 -0
- package/dist/web-sdk.js +4 -0
- package/package.json +1 -1
package/dist/web-sdk.d.ts
CHANGED
package/dist/web-sdk.js
CHANGED
|
@@ -618,6 +618,10 @@ class WebSDK {
|
|
|
618
618
|
const campaignClickPayload = await this.buildCampaignPayload(campaignId, opened, clicked, dismissed);
|
|
619
619
|
await this.processCampaignClick(campaignClickPayload);
|
|
620
620
|
}
|
|
621
|
+
async logPushNotificationClick(campaignId) {
|
|
622
|
+
const pushCampaignClickPayload = await this.buildCampaignPayload(campaignId, true, true);
|
|
623
|
+
await this.processCampaignClick(pushCampaignClickPayload);
|
|
624
|
+
}
|
|
621
625
|
async processCampaignClick(payload) {
|
|
622
626
|
try {
|
|
623
627
|
const response = await fetch(`${this.endpoint}/analytics/clicks`, {
|