Skip to content

Script to export get.gaug.es analytics data to CSV files.

License

Notifications You must be signed in to change notification settings

dewey/gaug.es-analytics-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exporter for gaug.es

This is a quick and dirty script to export your analytics data from gaug.es. According to the support there’s no way to export your own data. The export in the profile actually only “exports” your email address. Very helpful!

The export format is csv and is structured in the following way. This should make it possible to import it into other tools if necessary. The naming is the same as gaug.es uses internally.

Output format

date,views,people
2020-07-11,11,7
2020-07-12,21,15
2020-07-13,21,16
2020-07-14,31497,25870
2020-07-15,3359,2592
2020-07-16,904,692
2020-07-17,333,245
2020-07-18,197,148

Usage

Edit run_develop.sh and fill the two needed environment variables. Then make the file executable by running chmod +x run_develop.sh and execute it: ./run_develop.sh.

You can get the values for COOKIE and CSRF_TOKEN from your browser. Just log into gaug.es, open the inspector, navigate to the “Network” tab and look at the XHR requests. They will have these two headers so you can just copy the two values from there.

extract variables from browser requests

Output in your terminal should look like this:

gauges-export|⇒ ./run_develop.sh
command-line-arguments
ts=2020-09-05T13:16:49.836782Z caller=export.go:68 msg="exporting traffic for site" site=blog.notmyhostna.me
gauges-export|⇒ 

About

Script to export get.gaug.es analytics data to CSV files.

Topics

Resources

License

Stars

Watchers

Forks