Giter Site home page Giter Site logo

viettungvu / csharp-ga-reporting-v4-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kumarvikram/ga-reporting-dotnet-framework

0.0 0.0 0.0 6.15 MB

C# console app to read reports from Google Analytics using Google Analytics Reporting API V4 with report configuration driven specified in Web.config

Home Page: https://kumarvikram.com/google-analytics-report-v4-csharp-console-app/

C# 100.00%

csharp-ga-reporting-v4-app's Introduction

C# Console App to get reports from Google Analytics

C# console app to read data from Google Analytics using Google Analytics Reporting API V4 and save to file

Prerequisites

For step by step guide on how to do API and credential setup in Google Developer Console Read Google Analytics reports using C# console app

How to run?

  • Replace key.json with your actual key file generated from Google Developer Console.
  • Update KeyFileName key in App.config with your json file name.
 <add key="KeyFileName" value="key.json"/>
  • Google Analytics ViewId(s) to fetch report from. Separate by comma if there are multiple ViewIds.
<add key="Views" value="123456,123456"/>
  • Folder location where generated report files would be saved
<add key="OutputDirectory" value="C:\Reports" />
  • A sample report configuration
<ReportConfiguration>
  <!--Specify either Start & End date in MM/DD/YYYY format or NumberOfDays. In case of start and end date, number of days configuration would be skipped-->
  <DateConfiguration StartDate="" EndDate="" NumberOfDays="1" />
  <Reports>
    <Report name="PageViews" metrics="ga:pageviews" dimensions="ga:dateHourMinute,ga:pagePath" />      
  </Reports>
</ReportConfiguration>

View the complete list of metrics and dimensions that you can use here

csharp-ga-reporting-v4-app's People

Contributors

kumarvikram avatar dependabot[bot] 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.