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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ga4-export-fixer",
3
- "version": "0.2.3-dev.2",
3
+ "version": "0.2.3-dev.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "files": [
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