Skip to content

Commit

Permalink
fix: fix getUtmFromUrl method
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Banduristov committed Jun 29, 2022
1 parent 51caa13 commit 70f16cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getUtmFromUrl/getUrmFromUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { defaultUtmKeys as defaultImportedKeys } from "../defaultUtmKeys"
* @param utmKeysMap
* @returns {{}}
*/
export default function getUtmFromUr(url, utmKeysMap = []) {
export default function getUtmFromUrl(url, utmKeysMap = []) {

let defaultUtmKeys = [...defaultImportedKeys, utmKeysMap]
let defaultUtmKeys = [...defaultImportedKeys, ...utmKeysMap]

let queryString = url
? url.split('?')[1]
Expand Down

0 comments on commit 70f16cd

Please sign in to comment.