insert-affiliate-react-native-sdk 1.4.8 → 1.4.9

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.
@@ -394,13 +394,14 @@ const DeepLinkIapProvider = ({ children, }) => {
394
394
  console.error("[Insert Affiliate] Company code is not set. Please initialize the SDK with a valid company code.");
395
395
  return Promise.resolve();
396
396
  }
397
+ console.log("track event called with - companyCode: ", companyCode);
397
398
  if (!referrerLink || !userId) {
398
399
  console.warn('[Insert Affiliate] No affiliate identifier found. Please set one before tracking events.');
399
400
  return Promise.resolve();
400
401
  }
401
402
  const payload = {
402
403
  eventName,
403
- deepLinkParam: `${referrerLink}/${userId}`,
404
+ deepLinkParam: `${referrerLink}-${userId}`,
404
405
  companyId: companyCode,
405
406
  };
406
407
  const response = yield axios_1.default.post('https://api.insertaffiliate.com/v1/trackEvent', payload, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insert-affiliate-react-native-sdk",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "A package for connecting with the Insert Affiliate Platform to add app based affiliate marketing.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -468,6 +468,8 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
468
468
  return Promise.resolve();
469
469
  }
470
470
 
471
+ console.log("track event called with - companyCode: ", companyCode);
472
+
471
473
  if (!referrerLink || !userId) {
472
474
  console.warn(
473
475
  '[Insert Affiliate] No affiliate identifier found. Please set one before tracking events.'
@@ -477,7 +479,7 @@ const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER> = ({
477
479
 
478
480
  const payload = {
479
481
  eventName,
480
- deepLinkParam: `${referrerLink}/${userId}`,
482
+ deepLinkParam: `${referrerLink}-${userId}`,
481
483
  companyId: companyCode,
482
484
  };
483
485