0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Googleデータポータルでラベルが英語になってしまう問題

Posted at

年齢やデバイス等の結果をグラフや表で表示しようとすると表記が英語になってしまうので、
その対策を備忘録として残します。

ひとまず殴り書きしておりますので、
余力があればきれいにまとめます

##年齢##

filename.rb
CASE
  WHEN 年齢 = "18to24" THEN "18歳~24歳"
  WHEN 年齢 = "25to34" THEN "25歳~34歳"
  WHEN 年齢 = "35to44" THEN "35歳~44歳"
  WHEN 年齢 = "45to54" THEN "45歳~54歳"
  WHEN 年齢 = "55to64" THEN "55歳~64歳"
  WHEN 年齢 = "gt64" THEN "65歳以上"
  WHEN 年齢 = "Undeterminded" THEN "不明"
  ELSE "不明"
END

##デバイス##

filename.rb
CASE
  WHEN デバイス = "computers" THEN "パソコン"
  WHEN デバイス = "mobile devices with full browsers" THEN "スマートフォン"
  WHEN デバイス = "tablets with full browsers" THEN "タブレット"
  ELSE "不明"
END

##クリックタイプ##

filename.rb
CASE
  WHEN クリック タイプ = "Headline" THEN "広告見出し"
  WHEN クリック タイプ = "Get location details" THEN "詳しい場所を確認 "
  WHEN クリック タイプ = "Sitelink" THEN "サイトリンク"
  WHEN クリック タイプ = "Phone calls" THEN "モバイル Click-to-Call"
  WHEN クリック タイプ = "Driving direction" THEN "ルート案内"
  ELSE "不明"
END
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?