Skip to content

Cloudflare Zaraz Managed Component #17

@mackenly

Description

@mackenly

Hello! Awesome project!

I mentioned on Twitter a few weeks back when you announced the project that a Cloudflare Zaraz Managed Component would pair well with this project. I've been working on building one by reverse engineering the tracking script and collect endpoint. Everything seems to be working well!

My question is, what if any level of collaboration would you be open to? And have you considered exposing a dedicated HTTP endpoint with some form of basic auth to ingest data for serverside analytics? The way I am currently doing it feels a bit hacky and prone to break if there are breaking changes to the tracker or collect endpoint.

Repo: mackenly/counterscale-managed-component

I still have a few more things to wrap up, such as using service bindings to avoid the same zone worker limitation, better integration tests, better docs, and some final manual testing to work out any issues.

The benefit of using a Zaraz MC is that it can be fully serverside (no tracking script gets loaded), and integration with consent management is built in. You can, of course, load the tracking script using Zaraz like you would with GTM or similar, but a managed component makes it so that it is serverside and fast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions