ga4-export-fixer 0.2.3-dev.2 → 0.2.3-dev.3
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/utils.js +8 -0
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -205,6 +205,14 @@ const mergeSQLConfigurations = (defaultConfig, inputConfig = {}) => {
|
|
|
205
205
|
result.sourceTable = fixSourceTable(result.sourceTable);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
// include the event parameters listed in the eventParamsToColumns array in excludedEventParams
|
|
209
|
+
if (result.eventParamsToColumns && result.eventParamsToColumns.length > 0) {
|
|
210
|
+
const promotedParameters = result.eventParamsToColumns
|
|
211
|
+
.map(p => p.name)
|
|
212
|
+
.filter(p => typeof p === 'string' && p.trim() !== '');
|
|
213
|
+
result.excludedEventParams = mergeUniqueArrays(result.excludedEventParams, promotedParameters);
|
|
214
|
+
}
|
|
215
|
+
|
|
208
216
|
return result;
|
|
209
217
|
};
|
|
210
218
|
|