Unknown Zaraz events ate half of our 1,000,000 monthly events in 2 days

I am trying to understand why a particular event is being fired the event name is _zarazConsentedPageview I am only using spaPageView and that is showing up as the event Page View . Why are there two events being called for pageviews?
24 Replies
JAKEN 👻
JAKEN 👻OP•6mo ago
No description
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
Heya thanks for getting back to me! So the above was just a demonstration of the event, but here it is again when I had it active on our production server the product list viewed was a bug on our end but as you can see pageview is fired and __zarazconsentedpageview, also what is built-in browser event?
No description
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
No description
JAKEN 👻
JAKEN 👻OP•6mo ago
This event that was sent to zaraz right there I appreciate you for giving me a hand - I wish I could see the source of zaraz otherwise I wouldn't be asking so many questions my main concern is the pageview events as, we definitely don't have that many users on our site
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
oh gotcha, yeah that makes much more sense now
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
I'll try my best, is there anything I can do to see when this event is fired, as far as I have seen when I check zarazData all it is sending is "Pageview"
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
Yeah it's really odd let me do a quick test and give you the results
JAKEN 👻
JAKEN 👻OP•6mo ago
No description
JAKEN 👻
JAKEN 👻OP•6mo ago
this is the same setup we had on production, however as soon as it went live I started seeing that event over and over Let me grab your some code snippets to show what we are doing
document.addEventListener("turbo:load", function () {
zaraz.spaPageview()
})
document.addEventListener("turbo:load", function () {
zaraz.spaPageview()
})
JAKEN 👻
JAKEN 👻OP•6mo ago
No description
JAKEN 👻
JAKEN 👻OP•6mo ago
This all happened within 2 days after enabling on our production server. and we ran out of all of our events xD
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
When is that event supposed to be called and why is it different from pageview? this isn't documented anywhere
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
so does that send a pageview on top of the regular pageview? and if so, why? when I am controlling it on my end
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
okay so it isn't an actual "pageview" thatis fired after consent is granted. As you can see in the above code I am initializing the connect method checking to see if the cookie has been set or not. Could it be the cookie check is wrong therefore every time a page is rendered is sending the event regardless? I am implementing a scroll position to have implied consent when the user is half way down the page OP I got it It is incorrect code the window event listener never gets unset so every page load after consent has been granted will continue regardless of the cookie check so say the user hits the page, consents, then goes to another page, then scrolls down 50% the event will be fired again @yo'av Thank you so much for rubber duckying this with me. Sometimes I feel like I don't know what is going on with zaraz since it is proprietary code in which case we can't see the source to figure out how the internals work.
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
JAKEN 👻
JAKEN 👻OP•6mo ago
ofc ofc, I do appreciate your insight though, thank you again
Want results from more Discord servers?
Add your server