1
/
5

re:dashのTips(Google Analyticsとの連携、Spreadsheetsとの連携、ダッシュボードのグルーピングほか)

re:dashに関するTipsあれこれ。


re:dashとGoogle Analyticsの連携方法
いつの間にやらre:dashとGA(Google Analytics)が連携できるようになってましたが、とても便利です。GAの指標を使ったダッシュボードが手軽に作れますし、レポートの更新も半自動化/自動化が容易です。

re:dashのGoogle Analyticsデータソースを試す - Qiita
re:dashの 1.0ではデータソース(接続先)としてGoogle Analyticsが追加される予定 なので、それの機能を一足先に試します1 。 docker-compose を利用した構築手順は変わらないです。 ただしmasterのソースでredash Imageをビルドして、そのImageを使うようにします。 Docker Iamgeをビルドして、docker-compose.yamlをビルドしたImageを利用するようににへの変更します。 Google Developer Console オープ
http://qiita.com/hideji2/items/271ae82adf524b6789e0

Query Explorer
GA用のクエリを書く必要がありますが、Query Explorerを使うと簡単にクエリが作れます。

Query Explorer - Google Analytics Demos & Tools
Embed API's ViewSelector and DataChart components to select the user's view and query the Core Reporting API. It also uses the Metadata API to populate the items in the dimensions and metrics dropdowns and the Management API to get a list the current user
https://ga-dev-tools.appspot.com/query-explorer/?hl=ja


re:dashとSpreadsheetsの連携方法
Spreadsheetsとの連携も便利ですね。モニタリング用のデータ自体はSpreadsheetsに持ってるけど、ダッシュボードはre:dashにまとめたい時に使えます。
複数のデータソースのJoinが困難で、Spreadsheets上で抽出したデータを組み合わせる時なんかでもSpreadsheetsは使う時がありますよね。

オープンソースのデータ可視化ツールのre:dashでらくらく分析共有 その3 〜 Google Spreadsheets編 - Qiita
前回まではMySQLにつなげていましたが、今回は Google Spreadsheets とつなげてみます ここ にドキュメントがあるのですが、re:dashではpythonモジュールのgspreadとoauth2clientを使ってGoogle Spreadsheetsからデータをとってきています。 Google Developer Consoleでプロジェクトを作成 Service account keyの発行 APIを有効にする Google Spreadsheetsのデータソースの作成 データセッ
http://qiita.com/wapa5pow/items/312686403700a8e454df


ダッシュボードのグルーピング方法
ダッシュボードはダッシュボード名にコロン(:)付きのプリフィックスを付けることで、グルーピングができます。

How to Create a Dashboard? · Redash Help Center
Create dashboards for any topic you want to overview, add text and visualizations that update automatically according to your live data.
https://redash.io/help/dashboards/dashboards.html#grouping_dashs


Viz(Visualization)の種類に応じて必要なデータを知る方法
re:dashといえばいくつかのViz(Visualization)が用意されてますが、こちらのDemoと使われているデータを見ると、Vizのパターンに応じて必要なデータがわかります。

Login | Redash
http://demo.redash.io/dashboard/examples-visualizations


re:dashクエリの実行結果テーブルにリンクを含める方法
re:dashクエリの実行結果テーブルにURL文字列を含めると、クリック可能になります。

Conditional Formatting and General Text Formatting · Redash Help Center
Redash is our hacker'ish solution to make companies data driven - here are a few hacks that can help you make more out of your Redash.
https://redash.io/help/query-examples-hacks/redash-hacks.html#clickable-urls-in-table


re:dashクエリへのパラメータ差し込み
運用でクエリ内のパラメータを変更して、同じクエリを使うようなケースだと、クエリへのパラメータ差し込みが使えます。

Conditional Formatting and General Text Formatting · Redash Help Center
Redash is our hacker'ish solution to make companies data driven - here are a few hacks that can help you make more out of your Redash.
https://redash.io/help/query-examples-hacks/redash-hacks.html#default-param-value
12 いいね!
12 いいね!