<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swfz</author_name>
  <author_url>https://blog.hatena.ne.jp/swfz/</author_url>
  <blog_title>notebook</blog_title>
  <blog_url>https://swfz.hatenablog.com/</blog_url>
  <categories>
    <anon>GoogleCloudPlatform</anon>
    <anon>BigQuery</anon>
  </categories>
  <description>使わないとすぐ忘れるのでメモの意味で残しておく 題材はGA4でExportしたデータを使ってpagepathごとの過去7日間、30日間、合計のPV数を集計するという感じでやってみる 公式の解説 分析関数に関してのドキュメントは次にある 標準 SQL の分析関数のコンセプト | BigQuery | Google Cloud cloud.google.com 実際のSQL WITH flattened AS( # 日毎pagepath毎のPV数 # page_locationの値がURLなのでパスの部分のみを抜き出す # 日付は日本時間で集計する SELECT DATE( TIMESTAMP_M…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswfz.hatenablog.com%2Fentry%2F2021%2F10%2F09%2F224017&quot; title=&quot;BigQueryの分析関数でGA4の過去7日、30日、合計のPV数を集計する - notebook&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/swfz/20211009/20211009224213.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-09 22:40:17</published>
  <title>BigQueryの分析関数でGA4の過去7日、30日、合計のPV数を集計する</title>
  <type>rich</type>
  <url>https://swfz.hatenablog.com/entry/2021/10/09/224017</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
