{"id":18430539,"url":"https://github.com/connormckelvey/cloudflare-pixel-worker","last_synced_at":"2025-04-13T22:44:51.111Z","repository":{"id":70259147,"uuid":"456038025","full_name":"connormckelvey/cloudflare-pixel-worker","owner":"connormckelvey","description":"Cloudflare Woker for javascript-free page view analytics","archived":false,"fork":false,"pushed_at":"2022-02-06T02:33:37.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T09:14:43.116Z","etag":null,"topics":["cloudflare-workers","google-analytics","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/connormckelvey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-06T02:32:47.000Z","updated_at":"2022-05-06T03:15:05.000Z","dependencies_parsed_at":"2023-03-23T12:02:58.701Z","dependency_job_id":null,"html_url":"https://github.com/connormckelvey/cloudflare-pixel-worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connormckelvey%2Fcloudflare-pixel-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connormckelvey%2Fcloudflare-pixel-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connormckelvey%2Fcloudflare-pixel-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/connormckelvey%2Fcloudflare-pixel-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/connormckelvey","download_url":"https://codeload.github.com/connormckelvey/cloudflare-pixel-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794566,"owners_count":21162613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare-workers","google-analytics","serverless"],"created_at":"2024-11-06T05:21:14.508Z","updated_at":"2025-04-13T22:44:51.052Z","avatar_url":"https://github.com/connormckelvey.png","language":"JavaScript","readme":"# Cloudflare Pixel Worker\n\nCloudflare Pixel Worker is an example (not a library) of how use a Cloudflare Worker with an analytics provider such as Google Analytics. It is essentially a port of [Google Analytics Beacon](https://github.com/igrigorik/ga-beacon), written in Javascript and targeting Cloudflare.\n\n## Use Cases\n\nSome websites/platforms allow users to publish HTML, but not Javascript. Some sites support integrations with the user's Google Analytics account, but some, like in my case  (a popular online marketplace for physical goods) do not. This leaves content authors, creators, and other businesses at the mecry of the platform to provide (often limited) traffic insights.\n\n## Usage\n\n### Requirements\n\n- [Wrangler](https://developers.cloudflare.com/workers/cli-wrangler)\n- Nodejs + npm\n\n\n### Configuration\n\n- configure the wrangler.toml file for your Cloudflare site, worker name, and route\n- configure the ./config/ga_client.json file with your Google Analytics UA Code `UA-XXXXXXXXX-X`\n\n### Deploy\n\n`wrangler publish`\n\n\n## Contributing\n\nI don't really see this turning into a versioned library or module of any kind. PRs are are welcome for code clarity, related examples, and documentation. ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnormckelvey%2Fcloudflare-pixel-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconnormckelvey%2Fcloudflare-pixel-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconnormckelvey%2Fcloudflare-pixel-worker/lists"}