Coba server MCP untuk Google Analytics. Instal dari 
GitHub, dan lihat 
pengumuman untuk mengetahui detail selengkapnya.
  
        
 
       
     
  
  
  
    
  
  
  
    
      Method: properties.customMetrics.create
    
    
      
    
    
      
      Tetap teratur dengan koleksi
    
    
      
      Simpan dan kategorikan konten berdasarkan preferensi Anda.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
      
        
          Permintaan HTTP
          POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/customMetrics
URL menggunakan sintaksis gRPC Transcoding.
        
        
          Parameter jalur
          
            
              
              
            
            
              
                | Parameter | 
              
            
            
              
                parent | 
                
                   string 
                  Wajib. Contoh format: properties/1234 
                 | 
              
            
          
        
        
          Isi permintaan
          Isi permintaan memuat instance CustomMetric.
        
        
          Isi respons
          Jika berhasil, isi respons memuat instance CustomMetric yang baru dibuat.
        
        
          Cakupan otorisasi
          Memerlukan cakupan OAuth berikut ini:
          
            https://www.googleapis.com/auth/analytics.edit 
          
        
      
      
    
  
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
  Terakhir diperbarui pada 2025-07-26 UTC.
  
  
  
    
      [null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],["A `CustomMetric` is created via a `POST` request to the specified URL, using gRPC Transcoding. The URL requires a `parent` path parameter, formatted as `properties/1234`. The request body includes a `CustomMetric` instance. A successful response returns the newly created `CustomMetric`. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. The provided elements are the HTTP request, path parameters, and request/response body.\n"]]