{"id":24020992,"url":"https://github.com/siriustsou/google_analytics_bypassing_adblockers","last_synced_at":"2026-06-13T12:04:38.193Z","repository":{"id":98593878,"uuid":"187999194","full_name":"SiriusTsou/google_analytics_bypassing_adblockers","owner":"SiriusTsou","description":"Google Analytics Bypassing Adblockers","archived":false,"fork":false,"pushed_at":"2019-05-22T09:00:07.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T02:02:19.927Z","etag":null,"topics":["adblock","bypass","google-analytics","nginx","ublock-origin"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SiriusTsou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-05-22T08:45:53.000Z","updated_at":"2019-05-22T09:02:02.000Z","dependencies_parsed_at":"2023-03-13T15:58:26.214Z","dependency_job_id":null,"html_url":"https://github.com/SiriusTsou/google_analytics_bypassing_adblockers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SiriusTsou/google_analytics_bypassing_adblockers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusTsou%2Fgoogle_analytics_bypassing_adblockers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusTsou%2Fgoogle_analytics_bypassing_adblockers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusTsou%2Fgoogle_analytics_bypassing_adblockers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusTsou%2Fgoogle_analytics_bypassing_adblockers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiriusTsou","download_url":"https://codeload.github.com/SiriusTsou/google_analytics_bypassing_adblockers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiriusTsou%2Fgoogle_analytics_bypassing_adblockers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["adblock","bypass","google-analytics","nginx","ublock-origin"],"created_at":"2025-01-08T12:19:31.374Z","updated_at":"2026-06-13T12:04:38.176Z","avatar_url":"https://github.com/SiriusTsou.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Analytics Bypassing Adblockers\n\n## Client\n\nchange www.googletagmanager.com =\u003e your.domain.com\n```\n\u003c!-- Global site tag (gtag.js) - Google Analytics --\u003e\n\u003cscript async src=\"https://your.domain.com/gtag/js?id=UA-123456789-1\"\u003e\u003c/script\u003e\n```\n\n## Nginx File\n```\nserver {\n  listen 80;\n\n  server_name your.domain.com;\n\n  access_log off;\n  resolver 8.8.8.8 ipv6=off;\n\n  set $ga 'www.google-analytics.com';\n\n  location = /gtag/js {\n    proxy_set_header Accept-Encoding \"\";\n    sub_filter $ga $server_name;\n    sub_filter_types *;\n    sub_filter_once off;\n\n    proxy_pass https://www.googletagmanager.com$uri$is_args$args;\n    break;\n  }\n\n  location = /analytics.js {\n    proxy_set_header Accept-Encoding \"\";\n    sub_filter $ga $server_name;\n    sub_filter '\"/r/collect' '\"/r/c';\n    sub_filter '\"/j/collect' '\"/j/c';\n    sub_filter '\"/collect' '\"/c';\n    sub_filter_types *;\n    sub_filter_once off;\n\n    proxy_pass https://$ga/analytics.js;\n    break;\n  }\n\n  location / {\n    if ($uri ~ /r/c){\n      proxy_pass https://$ga/r/collect$is_args$args\u0026uip=$remote_addr;\n      break;\n    }\n    if ($uri ~ /j/c){\n      proxy_pass https://$ga/j/collect$is_args$args\u0026uip=$remote_addr;\n      break;\n    }\n    if ($uri ~ /c){\n      proxy_pass https://$ga/collect$is_args$args\u0026uip=$remote_addr;\n      break;\n    }\n\n    proxy_pass https://$ga$uri$is_args$args\u0026uip=$remote_addr;\n  }\n\n\n  # Cloudflare\n  set_real_ip_from 103.21.244.0/22;\n  set_real_ip_from 103.22.200.0/22;\n  set_real_ip_from 103.31.4.0/22;\n  set_real_ip_from 104.16.0.0/12;\n  set_real_ip_from 108.162.192.0/18;\n  set_real_ip_from 131.0.72.0/22;\n  set_real_ip_from 141.101.64.0/18;\n  set_real_ip_from 162.158.0.0/15;\n  set_real_ip_from 172.64.0.0/13;\n  set_real_ip_from 173.245.48.0/20;\n  set_real_ip_from 188.114.96.0/20;\n  set_real_ip_from 190.93.240.0/20;\n  set_real_ip_from 197.234.240.0/22;\n  set_real_ip_from 198.41.128.0/17;\n  set_real_ip_from 2400:cb00::/32;\n  set_real_ip_from 2606:4700::/32;\n  set_real_ip_from 2803:f800::/32;\n  set_real_ip_from 2405:b500::/32;\n  set_real_ip_from 2405:8100::/32;\n  set_real_ip_from 2c0f:f248::/32;\n  set_real_ip_from 2a06:98c0::/29;\n\n  # use any of the following two\n  real_ip_header CF-Connecting-IP;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiriustsou%2Fgoogle_analytics_bypassing_adblockers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiriustsou%2Fgoogle_analytics_bypassing_adblockers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiriustsou%2Fgoogle_analytics_bypassing_adblockers/lists"}