Skip to content

Commit 2393a2e

Browse files
committed
Add spread property
1 parent 689e117 commit 2393a2e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/amplitude-client.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,11 @@ AmplitudeClient.prototype._trackParamsAndReferrer = function _trackParamsAndRefe
367367
gclidProperties = this._saveGclid(this._getUrlParams());
368368
}
369369
if (this.options.logAttributionCapturedEvent) {
370-
const attributionProperties = Object.assign(
371-
{},
372-
utmProperties,
373-
referrerProperties,
374-
gclidProperties
375-
);
370+
const attributionProperties = {
371+
...utmProperties,
372+
...referrerProperties,
373+
...gclidProperties,
374+
};
376375
if (Object.keys(attributionProperties).length > 0) {
377376
this.logEvent(Constants.ATTRIBUTION_EVENT, attributionProperties);
378377
}

0 commit comments

Comments
 (0)