Cloudflare DevelopersCD
Cloudflare Developers12mo ago
5 replies
sterm

Firing multiple times

I'm searching the forum for a similar issue I'm facing now, but can't find any.
The issue I'm facing is that a Custom Html tool fires 3 times: 1 when the the Firing Trigger meet the conditions (That the normal behaviuor) and another tiem when other Custom Html tools fires and one more time with a visibilityChange fires.

The code snippets that are injected by zaraz are:
For the 1st time

(function(w,d){{const d = document.createElement('div');d.innerHTML = ``;document.body.appendChild(d);};{
    console.log('Event Busqueda fired');
    // zaraz.track('Busqueda',{event_url: window.location.href.split('?')[0],search_term:"educacion" });
}})(window,document) 
Was this page helpful?