Giter Club home page Giter Club logo

sql-recipes's Introduction

SQL Recipes for Web Analytics

This repository contains SQL code used in web analytics.

Data Extract

Google Analytics Clickstream Data BigQuery Export

This SQL query transforms Google Analytics BigQuery nested data into flat hit level data with a timestamp making data easy to analyze using tools like Tableau, SAS, R, etc. #####Instructions:

  1. Select either timestamp or UNIX time as you prefer by commenting either line #2 or line #3
  2. Select only the appropriate fields. The table may contain more than 200 columns, select only the variables you are capturing/using, namely custom variables, custom dimensions, enhanced ecommerce, etc. Please note this query contains fields that don't exist in older datasets, you will have to adapt accordingly.
  3. Output the results to another table and export to Google Storage
  4. Download the CSV, done!

sql-recipes's People

Contributors

joaolcorreia avatar

Watchers

James Cloos avatar Tiravat (TO) Assavapokee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.