D
D
Dsibe2019-08-29 12:28:13
Google Analytics
Dsibe, 2019-08-29 12:28:13

How to count views on the site from the Tor browser?

I have a website with Google Analytics installed.
With the help of a survey, I found out that the site is often accessed through Tor and Google Analytics does not detect these views.
What can I do to make Goole Analytics "see" these views, maybe there are special services for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
landergate, 2019-08-29
@Dsibe

If this is not a hidden service, but a public site, then you can parse visits from the web server's access.log and match against the list of tor exit nodes for an entry, since the entire list of tor exit nodes is publicly available.
This will allow you to get visit statistics from the Tor, including those who have JS turned off.
If this is not enough and it is fundamentally important to keep these statistics in Google Analytics, then it has a Measurement Protocol that allows you to send the facts of visits from the backend via HTTP:
https://developers.google.com/analytics/devguides/...
You can write a mechanism, which will parse server logs, match them with tor exit nodes, and send this data to GA.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question