Tóm tắt: Tài liệu này cung cấp thông tin tổng quan cấp cao về Google Analytics Admin API phiên bản 1.0.
Giới thiệu
Google Analytics Admin API cho phép truy cập theo phương pháp có lập trình vào dữ liệu cấu hình của Google Analytics và chỉ tương thích với các tài sản Google Analytics. Tìm hiểu thêm về tài sản Google Analytics.
Bạn có thể sử dụng Google Analytics Admin API để:
- Cung cấp tài khoản mới.
- Quản lý tài khoản.
- Quản lý cài đặt cách chia sẻ dữ liệu.
- Liệt kê thông tin tóm tắt về tài khoản.
- Tìm kiếm các sự kiện trong nhật ký thay đổi.
- Quản lý tài sản.
- Quản lý tài sản phụ.
- Xác nhận việc thu thập dữ liệu người dùng.
- Quản lý chế độ cài đặt giữ lại dữ liệu cho một tài sản.
- Quản lý chế độ cài đặt tín hiệu của Google cho một tài sản (Alpha).
- Quản lý sự kiện phát trực tiếp.
- Quản lý mã thông báo bí mật của Measurement Protocol.
- Quản lý giản đồ giá trị lượt chuyển đổi SKAdNetwork (Alpha).
- Tạo đoạn mã thẻ Google cho luồng dữ liệu web (Alpha).
- Quản lý sự kiện chính.
- Quản lý sự kiện chuyển đổi (Không dùng nữa).
- Quản lý quy tắc tạo sự kiện (Alpha)
- Quản lý quy tắc chỉnh sửa sự kiện (Alpha)
- Quản lý phương diện tuỳ chỉnh.
- Quản lý chỉ số tuỳ chỉnh.
- Quản lý mối liên kết giữa tài sản Google Analytics và dự án Firebase.
- Quản lý mối liên kết giữa tài sản Google Analytics và tài khoản Google Ads.
- Quản lý đề xuất liên kết giữa một tài sản Google Analytics và một nhà quảng cáo Display & Video 360 (Alpha).
- Quản lý mối liên kết giữa một tài sản Google Analytics và một nhà quảng cáo Display & Video 360 (Alpha).
- Quản lý mối liên kết giữa tài sản Google Analytics và Search Ads 360 (Alpha).
- Quản lý mối liên kết giữa tài sản Google Analytics và dự án BigQuery (Alpha).
- Quản lý quyền của người dùng đối với một hệ thống phân cấp tài khoản và các tài sản Google Analytics (Alpha).
- Tạo báo cáo về quyền truy cập dữ liệu.
- Quản lý đối tượng (Alpha).
- Quản lý tập dữ liệu mở rộng (Alpha).
- Quản lý chế độ cài đặt chọn không tham gia quy trình thiết lập Google Analytics tự động (Alpha).
Các phương thức hiện có
Dưới đây là các phương thức có sẵn.
Cung cấp tài khoản
Phương thức này trả về trường accountTicketId phải có trong URL Điều khoản dịch vụ (TOS):
https://analytics.google.com/analytics/web/?provisioningSignup=false#/termsofservice/ACCOUNT_TICKET_ID
Sau khi người dùng truy cập vào URL Điều khoản dịch vụ và chấp nhận Điều khoản dịch vụ, quá trình tạo tài khoản Google Analytics sẽ hoàn tất. Xem Mẫu cấp tài khoản.
Quản lý tài khoản
Quản lý chế độ cài đặt cách chia sẻ dữ liệu
Liệt kê thông tin tóm tắt về tài khoản
Tìm kiếm các sự kiện trong nhật ký thay đổi
Quản lý tài sản
Quản lý tài sản phụ (Alpha)
Xác nhận hoạt động thu thập dữ liệu người dùng
Quản lý chế độ cài đặt việc giữ lại dữ liệu
Quản lý chế độ cài đặt tín hiệu của Google (Alpha)
Quản lý luồng dữ liệu
properties.dataStreams.createproperties.dataStreams.getproperties.dataStreams.listproperties.dataStreams.patchproperties.dataStreams.delete
Quản lý mã thông báo bí mật cho Measurement Protocol
properties.dataStreams.measurementProtocolSecrets.createproperties.dataStreams.measurementProtocolSecrets.getproperties.dataStreams.measurementProtocolSecrets.patchproperties.dataStreams.measurementProtocolSecrets.listproperties.dataStreams.measurementProtocolSecrets.delete
Quản lý lược đồ giá trị lượt chuyển đổi SKAdNetwork (Alpha)
properties.dataStreams.sKAdNetworkConversionValueSchema.getproperties.dataStreams.sKAdNetworkConversionValueSchema.createproperties.dataStreams.sKAdNetworkConversionValueSchema.deleteproperties.dataStreams.sKAdNetworkConversionValueSchema.updateproperties.dataStreams.sKAdNetworkConversionValueSchema.list
Quản lý sự kiện chính
properties.keyEvents.createproperties.keyEvents.getproperties.keyEvents.listproperties.keyEvents.deleteproperties.keyEvents.patch
Quản lý sự kiện chuyển đổi
properties.conversionEvents.createproperties.conversionEvents.getproperties.conversionEvents.listproperties.conversionEvents.deleteproperties.conversionEvents.patch
Quản lý quy tắc tạo sự kiện (Alpha)
properties.dataStreams.eventCreateRules.createproperties.dataStreams.eventCreateRules.getproperties.dataStreams.eventCreateRules.listproperties.dataStreams.eventCreateRules.deleteproperties.dataStreams.eventCreateRules.patch
Quản lý quy tắc chỉnh sửa sự kiện (Alpha)
properties.dataStreams.eventEditRules.createproperties.dataStreams.eventEditRules.getproperties.dataStreams.eventEditRules.listproperties.dataStreams.eventEditRules.deleteproperties.dataStreams.eventEditRules.patchproperties.dataStreams.eventEditRules.reorder
Quản lý phương diện tuỳ chỉnh
properties.customDimensions.createproperties.customDimensions.getproperties.customDimensions.listproperties.customDimensions.patchproperties.customDimensions.archive
Quản lý chỉ số tuỳ chỉnh
properties.customMetrics.createproperties.customMetrics.getproperties.customMetrics.listproperties.customMetrics.patchproperties.customMetrics.archive
Liên kết dự án Firebase
Liên kết với tài khoản Google Ads
properties.googleAdsLinks.createproperties.googleAdsLinks.listproperties.googleAdsLinks.patchproperties.googleAdsLinks.delete
Tạo thẻ Google (Alpha)
Đề xuất liên kết giữa một tài sản Google Analytics và một nhà quảng cáo Display & Video 360 (Alpha)
properties.displayVideo360AdvertiserLinkProposals.createproperties.displayVideo360AdvertiserLinkProposals.approveproperties.displayVideo360AdvertiserLinkProposals.cancelproperties.displayVideo360AdvertiserLinkProposals.listproperties.displayVideo360AdvertiserLinkProposals.getproperties.displayVideo360AdvertiserLinkProposals.delete
Liên kết tài khoản của nhà quảng cáo Display & Video 360 (Alpha)
properties.displayVideo360AdvertiserLinks.createproperties.displayVideo360AdvertiserLinks.getproperties.displayVideo360AdvertiserLinks.listproperties.displayVideo360AdvertiserLinks.deleteproperties.displayVideo360AdvertiserLinks.patch
Liên kết tài khoản Search Ads 360 (Alpha)
properties.searchAds360Links.createproperties.searchAds360Links.deleteproperties.searchAds360Links.patchproperties.searchAds360Links.listproperties.searchAds360Links.get
Tìm hiểu thêm về cách thiết lập tính năng tích hợp Analytics với Search Ads 360 cho một tài sản Google Analytics.
Liên kết tài khoản BigQuery (Alpha)
properties.bigQueryLinks.createproperties.bigQueryLinks.deleteproperties.bigQueryLinks.getproperties.bigQueryLinks.listproperties.bigQueryLinks.patch
Tìm hiểu thêm về cách thiết lập tính năng BigQuery Export cho một tài sản Google Analytics.
Quản lý quyền của người dùng (Alpha)
accounts.accessBindings.createaccounts.accessBindings.deleteaccounts.accessBindings.patchaccounts.accessBindings.listaccounts.accessBindings.getaccounts.accessBindings.batchCreateaccounts.accessBindings.batchDeleteaccounts.accessBindings.batchUpdateaccounts.accessBindings.batchGetproperties.accessBindings.createproperties.accessBindings.deleteproperties.accessBindings.patchproperties.accessBindings.listproperties.accessBindings.getproperties.accessBindings.batchCreateproperties.accessBindings.batchDeleteproperties.accessBindings.batchUpdateproperties.accessBindings.batchGet
Báo cáo quyền truy cập dữ liệu
Hãy xem hướng dẫn về Báo cáo truy cập dữ liệu để biết thêm thông tin về tính năng này.
Quản lý đối tượng (Alpha)
properties.audiences.createproperties.audiences.archiveproperties.audiences.patchproperties.audiences.listproperties.audiences.get
Tìm hiểu thêm về đối tượng trong Google Analytics.
Quản lý tập dữ liệu mở rộng (Alpha)
properties.expandedDataSets.createproperties.expandedDataSets.deleteproperties.expandedDataSets.patchproperties.expandedDataSets.listproperties.expandedDataSets.get
Tìm hiểu thêm về Tập dữ liệu mở rộng trong Google Analytics 360.
Chọn không tham gia quy trình thiết lập Google Analytics tự động (Alpha)
Tìm hiểu thêm về cách quản lý trạng thái chọn không sử dụng đối với quy trình thiết lập Google Analytics tự động cho một tài sản UA.