@constructor-io/constructorio-node 3.10.4 → 3.10.5
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/package.json +1 -1
- package/src/modules/tracker.js +6 -0
package/package.json
CHANGED
package/src/modules/tracker.js
CHANGED
|
@@ -1023,6 +1023,7 @@ class Tracker {
|
|
|
1023
1023
|
* @param {string} parameters.pod_id - Pod identifier
|
|
1024
1024
|
* @param {string} parameters.strategy_id - Strategy identifier
|
|
1025
1025
|
* @param {string} parameters.item_id - Product item unique identifier
|
|
1026
|
+
* @param {string} parameters.item_name - Product item name
|
|
1026
1027
|
* @param {string} [parameters.variation_id] - Product item variation unique identifier
|
|
1027
1028
|
* @param {string} [parameters.section="Products"] - Index section
|
|
1028
1029
|
* @param {string} [parameters.result_id] - Recommendation result identifier (returned in response from Constructor)
|
|
@@ -1083,6 +1084,7 @@ class Tracker {
|
|
|
1083
1084
|
pod_id,
|
|
1084
1085
|
strategy_id,
|
|
1085
1086
|
item_id,
|
|
1087
|
+
item_name,
|
|
1086
1088
|
} = parameters;
|
|
1087
1089
|
|
|
1088
1090
|
if (variation_id) {
|
|
@@ -1127,6 +1129,10 @@ class Tracker {
|
|
|
1127
1129
|
bodyParams.item_id = item_id;
|
|
1128
1130
|
}
|
|
1129
1131
|
|
|
1132
|
+
if (item_name) {
|
|
1133
|
+
bodyParams.item_name = item_name;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1130
1136
|
const requestUrl = `${requestPath}${applyParamsAsString({}, userParameters, this.options)}`;
|
|
1131
1137
|
const requestMethod = 'POST';
|
|
1132
1138
|
const requestBody = applyParams(bodyParams, userParameters, { ...this.options, requestMethod });
|