Skip to content

A python script that recursively generates a BigQuery-dialect SQL query to build a funnel against Google Analytics page-hit data

Notifications You must be signed in to change notification settings

douug/funneler_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

funneler_py

A python script that recursively generates a BigQuery-dialect SQL query to build a funnel against Google Analytics page-hit data

To use:

  1. Create an input file called 'input.json' - it should contain one json that looks like this:

{ "table": "[(dataset id).ga_sessions_]", "start": "'2015-11-01'", # or any start date "end": "'2015-11-02'", # or any end date "regex_list": ["'regex #1'", "'regex #2'", "'regex #3'", "'regex #4'"], "segmode": "True", # or False, whatever you like "segment": "device.deviceCategory", "filtermode": "True", # or False, whatever you like "filtercol" : "trafficSource.medium", "filterval" : "'organic'" }

  1. run 'python funneler.py input.json'

About

A python script that recursively generates a BigQuery-dialect SQL query to build a funnel against Google Analytics page-hit data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages