{"id":22899768,"url":"https://github.com/follgad/posthog-reverse-proxy","last_synced_at":"2026-02-23T02:37:10.042Z","repository":{"id":233230865,"uuid":"776895000","full_name":"FOLLGAD/posthog-reverse-proxy","owner":"FOLLGAD","description":"Reverse proxy for Posthog using Netlify","archived":false,"fork":false,"pushed_at":"2025-02-25T14:02:24.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T19:33:21.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FOLLGAD.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-24T18:31:47.000Z","updated_at":"2024-11-16T15:58:13.000Z","dependencies_parsed_at":"2024-04-15T00:05:02.549Z","dependency_job_id":"a932c5dd-5d18-4f07-a042-b28e7cdd12f2","html_url":"https://github.com/FOLLGAD/posthog-reverse-proxy","commit_stats":null,"previous_names":["follgad/posthog-reverse-proxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FOLLGAD/posthog-reverse-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fposthog-reverse-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fposthog-reverse-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fposthog-reverse-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fposthog-reverse-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FOLLGAD","download_url":"https://codeload.github.com/FOLLGAD/posthog-reverse-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FOLLGAD%2Fposthog-reverse-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29735759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-14T01:16:27.482Z","updated_at":"2026-02-23T02:37:10.012Z","avatar_url":"https://github.com/FOLLGAD.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostHog Reverse Proxy\n\nA fast, free reverse proxy using Netlify redirects.\n\n## Why?\n\nMany browsers and ad blockers prevent analytics scripts from loading when they're served from known analytics domains.\n\nBy using a reverse proxy, you can serve PostHog's tracking script from your own domain, significantly reducing blocking while maintaining transparency about your analytics practices.\n\nFor best results, use your own domain with a CNAME to your Netlify deployment.\n\n## Setup\n\n### 1. Prerequisites\n\n- A PostHog account and project\n- A Netlify account\n- Basic knowledge of your PostHog instance URL and project API key\n\n### 2. Quick Deploy\n\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/follgad/posthog-reverse-proxy)\n\n## Usage\n\n### Basic Implementation\n\nReplace your standard PostHog snippet with this modified version:\n\n```javascript\n\u003cscript\u003e\n    !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(\".\");2==o.length\u0026\u0026(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement(\"script\")).type=\"text/javascript\",p.crossOrigin=\"anonymous\",p.async=!0,p.src=s.api_host.replace(\".i.posthog.com\",\"-assets.i.posthog.com\")+\"/static/array.js\",(r=t.getElementsByTagName(\"script\")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a=\"posthog\",u.people=u.people||[],u.toString=function(t){var e=\"posthog\";return\"posthog\"!==a\u0026\u0026(e+=\".\"+a),t||(e+=\" (stub)\"),e},u.people.toString=function(){return u.toString(1)+\".people (stub)\"},o=\"init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug\".split(\" \"),n=0;n\u003co.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);\n\n    posthog.init('phc_HVZKJWBQsRNDxtuUrLetq6d3k0cP7wGxHGcUiAJqvsE', {\n      api_host: \"YOUR_DOMAIN_HERE\",\n      person_profiles: 'identified_only'\n    })\n\u003c/script\u003e\n```\n\nReplace `YOUR_DOMAIN_HERE` with your Netlify deployment URL (e.g., `https://your-proxy.netlify.app`).\n\n## License\n\nThe Unlicense - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollgad%2Fposthog-reverse-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollgad%2Fposthog-reverse-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollgad%2Fposthog-reverse-proxy/lists"}