Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/josue87/analyticsrelationships
OSINT (Open Source Intelligence)ReconnaissanceDNS & Subdomain EnumerationInformation Gathering
GitHubjosue87/analyticsrelationships

AnalyticsRelationships

Get related domains / subdomains by looking at Google Analytics IDs

View Repository
254294 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
AnalyticsRelationships — Get related domains / subdomains by looking at Google Analytics IDs | Kitploit

AnalyticsRelationships

This 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 builtwith and hackertarget with the ID.



Note: It does not work with all websites. It is searched by the following expressions:

root@kitploit:~
->  "www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+"
-> GTM-[A-Z0-9]+
->  "UA-\d+-\d+"

Available versions:

  • Python
  • GO

Installation:

Installation according to language.

Python

root@kitploit:~
> git clone https://github.com/Josue87/AnalyticsRelationships.git
> cd AnalyticsRelationships/Python
> sudo pip3 install -r requirements.txt

GO

root@kitploit:~
> git clone https://github.com/Josue87/AnalyticsRelationships.git
> cd AnalyticsRelationships/
> go build -ldflags "-s -w"

Docker

root@kitploit:~
> git clone https://github.com/Josue87/AnalyticsRelationships.git
> cd AnalyticsRelationships
> docker build -t analyticsrelationships:latest . 

Usage

Usage according to language

Python

root@kitploit:~
> python3 analyticsrelationships.py -u https://www.example.com

Or redirect output to a file (banner or information messages are sent to the error output):

root@kitploit:~
python3 analyticsrelationships.py -u https://www.example.com > /tmp/example.txt

GO

root@kitploit:~
>  ./analyticsrelationships --url https://www.example.com

Or redirect output to a file (banner or information messages are sent to the error output):

root@kitploit:~
>  ./analyticsrelationships --url https://www.example.com > /tmp/example.txt

You can also pass a file as input

root@kitploit:~
>  cat file.txt | ./analyticsrelationships 

Or a single URL

root@kitploit:~
>  echo https://www.example.com | ./analyticsrelationships 

Docker

Only Python Version.

root@kitploit:~
>  docker run -it  analyticsrelationships:latest https://www.example.com

Or redirect output to a file (banner or information messages are sent to the error output):

root@kitploit:~
>  docker run -it  analyticsrelationships:latest https://www.example.com > /tmp/example.txt

Examples

Python

Output redirection to file /tmp/example.txt:

image

Without redirection:

image

GO

Without redirection:

image

Working with file redirection works just like in Python.

An example with a file:

image

Disclaimer!

This is a PoC. The author is not responsible for any illegitimate use.

Download Tool