We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 689e117 commit 2393a2eCopy full SHA for 2393a2e
src/amplitude-client.js
@@ -367,12 +367,11 @@ AmplitudeClient.prototype._trackParamsAndReferrer = function _trackParamsAndRefe
367
gclidProperties = this._saveGclid(this._getUrlParams());
368
}
369
if (this.options.logAttributionCapturedEvent) {
370
- const attributionProperties = Object.assign(
371
- {},
372
- utmProperties,
373
- referrerProperties,
374
- gclidProperties
375
- );
+ const attributionProperties = {
+ ...utmProperties,
+ ...referrerProperties,
+ ...gclidProperties,
+ };
376
if (Object.keys(attributionProperties).length > 0) {
377
this.logEvent(Constants.ATTRIBUTION_EVENT, attributionProperties);
378
0 commit comments