{"id":13842336,"url":"https://github.com/Josue87/AnalyticsRelationships","last_synced_at":"2025-07-11T15:30:49.521Z","repository":{"id":43415082,"uuid":"367594972","full_name":"Josue87/AnalyticsRelationships","owner":"Josue87","description":"Get related domains / subdomains by looking at Google Analytics IDs","archived":false,"fork":false,"pushed_at":"2022-06-03T14:00:13.000Z","size":62,"stargazers_count":222,"open_issues_count":3,"forks_count":28,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-08-05T17:31:30.608Z","etag":null,"topics":["bugbounty","osint","subdomains"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Josue87.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}},"created_at":"2021-05-15T09:51:40.000Z","updated_at":"2024-07-29T20:38:22.000Z","dependencies_parsed_at":"2022-08-25T00:21:26.240Z","dependency_job_id":null,"html_url":"https://github.com/Josue87/AnalyticsRelationships","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/Josue87%2FAnalyticsRelationships","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josue87%2FAnalyticsRelationships/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josue87%2FAnalyticsRelationships/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Josue87%2FAnalyticsRelationships/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Josue87","download_url":"https://codeload.github.com/Josue87/AnalyticsRelationships/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225736839,"owners_count":17516245,"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":["bugbounty","osint","subdomains"],"created_at":"2024-08-04T17:01:32.371Z","updated_at":"2024-11-21T13:30:21.440Z","avatar_url":"https://github.com/Josue87.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cb\u003eAnalyticsRelationships\u003c/b\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://golang.org/dl/#stable\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/go-1.16-blue.svg?style=flat-square\u0026logo=go\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.python.org/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/python-3.6+-blue.svg?style=flat-square\u0026logo=go\"\u003e\n  \u003c/a\u003e\n   \u003ca href=\"https://www.gnu.org/licenses/gpl-3.0.en.html\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-GNU-green.svg?style=square\u0026logo=gnu\"\u003e\n   \u003ca href=\"https://twitter.com/JosueEncinar\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/author-@JosueEncinar-orange.svg?style=square\u0026logo=twitter\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\nThis script try to get related domains / subdomains by looking at Google Analytics IDs from a URL. First search for ID of Google Analytics in the webpage and then request to \u003cb\u003ebuiltwith\u003c/b\u003e and \u003cb\u003ehackertarget\u003c/b\u003e with the ID.\n\u003c/p\u003e\n\u003cbr/\u003e\n\u003chr/\u003e\n\n**Note**: It does not work with all websites. It is searched by the following expressions: \n\n```\n-\u003e  \"www\\.googletagmanager\\.com/ns\\.html\\?id=[A-Z0-9\\-]+\"\n-\u003e GTM-[A-Z0-9]+\n-\u003e  \"UA-\\d+-\\d+\"\n```\n\n## Available versions:\n\n* [Python](Python)\n* [GO](.)\n\n## Installation:\n\nInstallation according to language.\n\n### Python\n\n```\n\u003e git clone https://github.com/Josue87/AnalyticsRelationships.git\n\u003e cd AnalyticsRelationships/Python\n\u003e sudo pip3 install -r requirements.txt\n```\n\n### GO\n\n```\n\u003e git clone https://github.com/Josue87/AnalyticsRelationships.git\n\u003e cd AnalyticsRelationships/\n\u003e go build -ldflags \"-s -w\"\n```\n\n### Docker\n```\n\u003e git clone https://github.com/Josue87/AnalyticsRelationships.git\n\u003e cd AnalyticsRelationships\n\u003e docker build -t analyticsrelationships:latest . \n```\n\n## Usage\n\nUsage according to language\n\n### Python\n\n```\n\u003e python3 analyticsrelationships.py -u https://www.example.com\n```\n\nOr redirect output to a file (banner or information messages are sent to the error output):\n\n``` \npython3 analyticsrelationships.py -u https://www.example.com \u003e /tmp/example.txt\n```\n\n\n### GO\n\n```\n\u003e  ./analyticsrelationships --url https://www.example.com\n```\n\nOr redirect output to a file (banner or information messages are sent to the error output):\n\n```\n\u003e  ./analyticsrelationships --url https://www.example.com \u003e /tmp/example.txt\n```\n\nYou can also pass a file as input\n\n```\n\u003e  cat file.txt | ./analyticsrelationships \n```\n\nOr a single URL\n\n```\n\u003e  echo https://www.example.com | ./analyticsrelationships \n```\n\n### Docker\n\nOnly Python Version.\n\n```\n\u003e  docker run -it  analyticsrelationships:latest https://www.example.com\n```\n\nOr redirect output to a file (banner or information messages are sent to the error output):\n\n```\n\u003e  docker run -it  analyticsrelationships:latest https://www.example.com \u003e /tmp/example.txt\n```\n## Examples\n\n### Python\n\nOutput redirection to file /tmp/example.txt:\n\n![image](https://user-images.githubusercontent.com/16885065/118681597-fdf27180-b7ff-11eb-9b4d-c6738d1bc5ff.png)\n\nWithout redirection:\n\n![image](https://user-images.githubusercontent.com/16885065/118681802-28442f00-b800-11eb-8a95-8b0de24ec691.png)\n\n### GO\n\nWithout redirection:\n\n![image](https://user-images.githubusercontent.com/16885065/118682807-0e571c00-b801-11eb-8da2-d9e3d3c1d555.png)\n\nWorking with file redirection works just like in Python.\n\nAn example with a file:\n\n![image](https://user-images.githubusercontent.com/16885065/123318287-57506d80-d52f-11eb-89d8-cf0a3f8ab4ee.png)\n\n\n# Disclaimer!\n\nThis is a PoC. The author is not responsible for any illegitimate use.\n","funding_links":[],"categories":["[](#table-of-contents) Table of contents","Go"],"sub_categories":["[](#website-analyze)Website analyze"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosue87%2FAnalyticsRelationships","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJosue87%2FAnalyticsRelationships","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosue87%2FAnalyticsRelationships/lists"}