This task removes any parameters that aren't directly related to Analytics, such as IDs other than the clientId or any other values that aren't relevant to Google Analytics 4.
| Key |
|---|
| ecid |
| ur |
| are |
| frm |
| pscdl |
| tfd |
| tag_exp |
| dma |
| dma_cps |
| gcd |
| gcs |
| gsu |
| gcut |
| gcid |
| gclsrc |
| gclid |
| gaz |
| us_privacy |
| gdpr |
| gdpr_consent |
| us_privacy |
| _geo |
| _rdi |
| _uie |
| _uc |
var privacySweepTask = (...) => {...}
You can grab the code for this task from dist/tasks/ folder
var GA4CustomTaskInstance = new GA4CustomTask({
allowedMeasurementIds: ["G-DEBUGEMALL"],
tasks: [
privacySweepTask
]
});
No parameters accepted
