試用 Google Analytics 的 MCP 伺服器。從 
GitHub 安裝,詳情請參閱
公告。
  
        
 
       
     
  
  
  
    
  
  
  
    
      DateRange
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
        連續的日期組合:startDate、startDate + 1、...、endDate。最多可提出 4 個日期範圍的要求。
      
      
        
          
            
              | JSON 表示法 | 
            
          
          
            
              {
  "startDate": string,
  "endDate": string,
  "name": string
} | 
            
          
        
      
      
        
          
            
            
          
          
            
              | 欄位 | 
            
          
          
            
              startDate | 
              
                 string 
                查詢的開始日期 (含此日期),格式為 YYYY-MM-DD。不得晚於 endDate。系統也接受 NdaysAgo、yesterday 或 today 格式,在這種情況下,系統會根據資源的回報時區推斷日期。 
               | 
            
            
              endDate | 
              
                 string 
                查詢的結束日期 (含此日期),格式為 YYYY-MM-DD。不得早於 startDate。系統也接受 NdaysAgo、yesterday 或 today 格式,在這種情況下,系統會根據資源的回報時區推斷日期。 
               | 
            
            
              name | 
              
                 string 
                為這個日期範圍指定名稱。在報表回應中,維度 dateRange 的值為此名稱。如果已設定,則開頭不得為 date_range_ 或 RESERVED_。如果未設定,日期範圍會以要求中的零基索引命名:date_range_0、date_range_1 等。 
               | 
            
          
        
      
    
  
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-26 (世界標準時間)。
  
  
  
    
      [null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["The core content describes defining date ranges for queries. Each date range is specified by a `startDate` and `endDate` in `YYYY-MM-DD` format or using relative terms like `NdaysAgo`, `yesterday`, or `today`.  A `name` can be assigned to each range, which will be used in the response; otherwise, ranges are indexed. Up to four date ranges can be requested.  The `startDate` cannot be after `endDate`, and the `name` cannot begin with `date_range_` or `RESERVED_`.\n"]]