diff --git a/src/tracker/index.js b/src/tracker/index.js index cab33db00..c51728562 100644 --- a/src/tracker/index.js +++ b/src/tracker/index.js @@ -41,7 +41,7 @@ }; const getPageviewEventData = () => Object.fromEntries( - [...currentScript.attributes] + Array.from(currentScript.attributes) .filter(attribute => attribute.name.match(pageviewCustomPropertyRegex)) .map(attribute => { const match = attribute.name.match(pageviewCustomPropertyRegex);