How to make Zaraz to trigger its codes, even so I now use redirect rule?

What is the name of the domain?

top-rated.team

What is the error number?

No error, but I see the Zaraz codes aren’t triggering

What is the error message?

No error, but I see the Zaraz codes aren’t triggering

What is the issue you’re encountering

It’s not an issue, it’s a question of what sort of redirect rule I could use to still trigger Zaraz codes?

What steps have you taken to resolve the issue?

Hi.

I need to temporary send website visitors from my domain ulrs to another domain pages. Is it possible to still make my domain codes I have in Zaraz settings triggering, even so it’s this or that redirect tool? Kindly advice please!

Thank you!

Regards,

Dan

What are the steps to reproduce the issue?

Follow any of my top-reated.team domain redirect rules, but it seems that Zaraz codes aren’t triggering.

Hello,

To address your query, you can still run your Cloudflare Zaraz scripts even if you are redirecting traffic.

In replacement of a server-side or Cloudflare Page Rule redirect, you might opt for a meta refresh, JavaScript-based redirect, or Cloudflare Workers.

Meta refresh employs an HTML tag that refreshes the page after a set time, redirecting the user. It is often discouraged because of accessibility and SEO issues. : H76: Using meta refresh to create an instant client-side redirect | WAI | W3C

Meanwhile, JavaScript Redirect uses JavaScript to modify the window.location and directs the user to a new URL. Although flexible, it is dependent on JavaScript being present in the user’s browser. : Redirections in HTTP - HTTP | MDN

Cloudflare Workers let you create JavaScript that executes on Cloudflare’s edge servers. You can generate redirects by returning a Response.redirect from the worker script. : Redirect · Cloudflare Workers docs

2 Likes

Thanks so much for your help, @sufi . Okay, I setup top-rated.team/book worker route to send to Google Calendar booking page. How to make sure Zaraz codes are firing?