{"id":16445275,"url":"https://github.com/dgapitts/google-analytics-analyzer","last_synced_at":"2025-09-02T11:40:39.324Z","repository":{"id":145829353,"uuid":"42813545","full_name":"dgapitts/google-analytics-analyzer","owner":"dgapitts","description":"simple scripts to aggregate google analytics data","archived":false,"fork":false,"pushed_at":"2016-05-29T07:05:56.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T01:00:01.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgapitts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-20T13:15:57.000Z","updated_at":"2016-05-29T07:00:29.000Z","dependencies_parsed_at":"2023-08-29T02:06:06.932Z","dependency_job_id":null,"html_url":"https://github.com/dgapitts/google-analytics-analyzer","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/dgapitts%2Fgoogle-analytics-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fgoogle-analytics-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fgoogle-analytics-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fgoogle-analytics-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgapitts","download_url":"https://codeload.github.com/dgapitts/google-analytics-analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240831199,"owners_count":19864711,"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":[],"created_at":"2024-10-11T09:43:50.339Z","updated_at":"2025-02-26T09:45:52.776Z","avatar_url":"https://github.com/dgapitts.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-analytics-analyzer [![wercker status](https://app.wercker.com/status/3200e275c698f760a950ed35eacb9260/s/master \"wercker status\")](https://app.wercker.com/project/bykey/3200e275c698f760a950ed35eacb9260)\nsimple scripts to aggregate google analytics data\n\n\n\n## Version 1 - aggregates data over just browser version (Safari 8, Chrome 40, IE 11 …)\n\nThe first version, aggregates data (i.e. csv file from google analytics) over just the 'browser version':\n\n```sh\n~/projects/google-analytics-analyzer $ head test_load_version.csv\n# ----------------------------------------\n# All Web Site Data\n# *************\n# 2014*******\n# ----------------------------------------\n\nBrowser,Browserversie,Sessies,% nieuwe sessies,Nieuwe gebruikers,Bouncepercentage,Pagina's/sessie,Gem. sessieduur,Doelconversieratio,Behaalde doelen,Doelwaarde\nChrome,40.0.2214.111,2.546,\"99,88%\",2.543,\"85,98%\",\"1,15\",00:00:31,\"0,00%\",0,\"US$ 0,00\"\nSafari,8.0,449,\"73,05%\",328,\"57,91%\",\"2,16\",00:01:19,\"0,00%\",0,\"US$ 0,00\"\nInternet Explorer,11.0,411,\"74,70%\",307,\"47,69%\",\"2,35\",00:01:37,\"0,00%\",0,\"US$ 0,00\"\n```\n\nMost of the logic is python, but I'm using a bash wrapper script for the sort operation ('sort -nr'):\n\n```sh\n~/projects/google-analytics-analyzer $ ./wrapper_load_version.sh test_load_version.csv | head\n7374\n2610 \tChrome 40\n487 \tSafari 8\n411 \tInternet Explorer 11\n354 \tChrome 36\n329 \tChrome 42\n299 \tInternet Explorer 9\n284 \tSafari 7\n268 \tChrome 39\n247 \tChrome 43\n```\n\n## Version 2 - aggregates data over both browser version and operating system (Mac, Windows, Android) \n\nThe second version, aggregates data (i.e. csv file from google analytics) over both the 'browser version' and operating system (Mac, Windows, Android):\n\n```sh\n~/projects/google-analytics-analyzer $ head test_load_version_and_os.csv\n# ----------------------------------------\n# All Web Site Data\n# ***************\n# ***************\n# ----------------------------------------\n\nBrowser,Browser Version,Operating System,Sessions\nChrome,40.0.2214.111,Macintosh,\"2,533\"\nSafari,8.0,iOS,437\nInternet Explorer,11.0,Windows,389\n```\n\nand here is some sample output:\n\n```sh\n~/projects/google-analytics-analyzer $ ./wrapper_load_version_and_os.sh test_load_version_and_os.csv | head\n7374\n2533 \tChrome 40 Macintosh\n437 \tSafari 8 iOS\n389 \tInternet Explorer 11 Windows\n347 \tChrome 36 Windows\n297 \tInternet Explorer 9 Windows\n225 \tSafari 7 iOS\n186 \tChrome 42 Windows\n171 \tInternet Explorer 8 Windows\n118 \t(not set) (not set) (not set)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgapitts%2Fgoogle-analytics-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgapitts%2Fgoogle-analytics-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgapitts%2Fgoogle-analytics-analyzer/lists"}