Coder Social home page Coder Social logo

delfinacare / app-store-analytics-export Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/app-store-analytics-export

0.0 0.0 0.0 199 KB

Scripts for exporting app analytics to BigQuery

License: Mozilla Public License 2.0

JavaScript 98.86% Dockerfile 1.14%

app-store-analytics-export's Introduction

App Store Analytics Export

Scripts for exporting app analytics to BigQuery. The export will export individual metrics grouped by a single dimension and load each metric and dimension combination into a single table. Metrics and dimensions that will be exported can be found in the metric metadata file.

A username and password for App Store Connect is required to use the script.

Adding Metrics To Export

To add new metrics to export, add an entry to metricData in analytics_export/tableMetadata.js. The dimensions for the metrics will be automatically detected.

This job exports a table for each metric and dimension combination. This script in bigquery-etl generates sql that combines all the metrics by dimension, creating one table per dimension. The script checks for existing tables in BigQuery so it must be run after the new metrics have been exported at least once.

Official documentation of metrics and dimensions can be found at https://help.apple.com/app-store-connect/#/itc21781223f

Usage

This project uses yarn to manage dependencies and was developed with nodejs 12.

To install dependencies use:

yarn

To run the export use yarn export. Use yarn export --help to view supported options.

e.g.

yarn export \
    --username=u \
    --password=p \
    --app-id=123 \
    --app-name=app \
    --start-date=2020-01-01 \
    --project=test-project \
    --dataset=test-dataset

ESLint and Prettier are used for code formatting and linting. Lint check can be run with:

yarn lint

And automatic fixing can be done with:

yarn lint-fix && yarn pretty

Tests are run with mocha:

yarn test

app-store-analytics-export's People

Contributors

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