Closed vjaceslavhl closed 1 year ago
Hey @vjaceslavhl, can you provide a stack blitz as I'm unable to reproduce it?
Sorry for the late answer.
Hey @elgorditosalsero, The issue was resolved. I was wrong by saying that it's that simple event, it was related to "purchase" event.
It seems like google is quite strict with their "purchase" even data format and in my case we were missing one of the keys (honestly, don't remember which one), but ye, the problem was data format.
Pretty sure you can't do much from your side, but if google gives enough info from their side it would be great to have proper error handling and get info which event/key failing, but IIRC I've had exactly same error without any specifics with just native GTM implementation.
Thanks anyway
Hey,
I'm trying to use your hook and for some events I'm getting weird error message:
which is this
insertBefore
part:It's a simple event:
I'm using it inside of
useCallback
in the custom hook, I'm honestly kinda struggle to find the solution, maybe you can point to the right direction?Also in the debugger itself I can see that event is detected, plus additional event sent which is
optimize.callback
Thank you