You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
I have a react app that is used with google analytics and autotrack plugin and it fires this error a lot:
Uncaught TypeError: Failed to execute 'unobserve' on 'IntersectionObserver': parameter 1 is not of type 'Element'.
at impression-tracker.js:329:43
at Array.forEach (<anonymous>)
at ye.handleDomElementRemoved (impression-tracker.js:327:16)
at ye.walkNodeTree (impression-tracker.js:251:7)
at ye.handleDomMutations (impression-tracker.js:234:14)
I found that this component is currently controlled in react so that it appears and disappears based on the data:
<div>
{data && <div id="my-id>...</div>}
</div>
When I caught this exception in Dev Tools, I found that the element that is passed to the unobserve function is actually div#my-id, so I'm not sure why it is complaining that it is not of a type 'Element`.
Here is the corresponding line in impression-tracker.js where the exception is thrown:
I have a react app that is used with google analytics and autotrack plugin and it fires this error a lot:
Here is how google analytics is configured:
I found that this component is currently controlled in react so that it appears and disappears based on the data:
When I caught this exception in Dev Tools, I found that the
element
that is passed to theunobserve
function is actuallydiv#my-id
, so I'm not sure why it is complaining that it is not of a type 'Element`.Here is the corresponding line in
impression-tracker.js
where the exception is thrown:It looks like this issue is happening to others as well even without react involvement:
The text was updated successfully, but these errors were encountered: