Universal Analytics 与 Google Analytics(分析)4 维度和指标的等效性

本文档介绍了 Universal Analytics API 维度和指标与等效的 Google Analytics(分析)4 维度和指标之间的对应关系。目前,仅下表中提及的 Universal Analytics 字段在 Google Analytics(分析)4 中有等效字段。

用户

指标

字段名称 UA 名称 GA4 等效名称
用户 ga:users totalUsers
新用户数 ga:newUsers newUsers
1 天活跃用户数 ga:1dayUsers active1DayUsers
7 天活跃用户数 ga:7dayUsers active7DayUsers
28 天活跃用户数 ga:28dayUsers active28DayUsers
每名用户的会话数 ga:sessionsPerUser sessionsPerUser

会话

指标

字段名称 UA 名称 GA4 等效名称
会话 ga:sessions sessions
会话时长 ga:sessionDuration userEngagementDuration
命中次数 ga:hits eventCount

流量来源

尺寸

字段名称 UA 名称 GA4 等效名称
完整引荐来源网址 ga:fullReferrer pageReferrer
广告系列 ga:campaign sessionCampaignName
源代码 ga:source sessionSource
ga:medium sessionMedium
广告系列代码 ga:campaignCode sessionCampaignId

AdWords

尺寸

字段名称 UA 名称 GA4 等效名称
广告格式 ga:adFormat adFormat,与 adSourceName 结合使用
Google Ads:广告组 ga:adGroup sessionGoogleAdsAdGroupName
广告投放网络 ga:adDistributionNetwork sessionGoogleAdsAdNetworkType
搜索查询 ga:adMatchedQuery sessionGoogleAdsQuery
Google Ads 广告系列 ID ga:adwordsCampaignID sessionCampaignId
Google Ads 广告组 ID ga:adwordsAdGroupID sessionGoogleAdsAdGroupId
Google Ads 广告素材 ID ga:adwordsCreativeID sessionGoogleAdsCreativeId

指标

字段名称 UA 名称 GA4 等效名称
广告客户的广告点击次数 ga:adClicks 广告客户的广告点击次数
广告客户广告展示次数 ga:impressions 广告客户广告展示次数
广告客户广告费用 ga:adCost adveristerAdCost

平台或设备

尺寸

字段名称 UA 名称 GA4 等效名称
Browser ga:browser browser
操作系统 ga:operatingSystem operatingSystem
操作系统版本 ga:operatingSystemVersion operatingSystemVersion
移动设备品牌 ga:mobileDeviceBranding mobileDeviceBranding
移动设备型号 ga:mobileDeviceModel mobileDeviceModel
设备类别 ga:deviceCategory deviceCategory
数据源 ga:dataSource platform

地理位置网络

尺寸

字段名称 UA 名称 GA4 等效名称
国家/地区 ga:country 国家/地区
区域 ga:region region
城市 ga:city city
城市 ID ga:cityId cityId
国家/地区 ISO 代码 ga:countryIsoCode countryId

系统

尺寸

字段名称 UA 名称 GA4 等效名称
语言 ga:language language
屏幕分辨率 ga:screenResolution screenResolution

网页跟踪

尺寸

字段名称 UA 名称 GA4 等效名称
主机名 ga:hostname hostName
网页 ga:pagePath pagePathPlusQueryString
网页标题 ga:pageTitle pageTitle

指标

字段名称 UA 名称 GA4 等效名称
网页浏览量 ga:pageviews screenPageViews
页面停留时间 ga:timeOnPage userEngagementDuration

应用跟踪

尺寸

字段名称 UA 名称 GA4 等效名称
应用版本 ga:appVersion appVersion
屏幕名称 ga:screenName unifiedScreenName

指标

字段名称 UA 名称 GA4 等效名称
屏幕浏览量 ga:screenviews screenPageViews

事件跟踪

尺寸

字段名称 UA 名称 GA4 等效名称
事件标签 ga:eventLabel eventName

指标

字段名称 UA 名称 GA4 等效名称
事件总数 ga:totalEvents eventCount
事件价值 ga:eventValue eventValue

电子商务

尺寸

字段名称 UA 名称 GA4 等效名称
商品品牌 ga:productBrand itemBrand
商品类别 ga:productCategory itemCategory
商品类别(增强型电子商务) ga:productCategoryHierarchy itemCategory、itemCategory2、itemCategory3、itemCategory4、itemCategory5
商品 ID ga:productSku itemId
商品列表名称 ga:productListName itemListName
商品名称 ga:productName itemName
商品促销活动的广告素材名称 ga:internalPromotionCreative itemPromotionCreativeName
商品促销活动的 ID ga:internalPromotionId itemPromotionId
商品促销活动的名称 ga:internalPromotionName itemPromotionName
订单优惠券代码 ga:orderCouponCode orderCoupon
交易 ID ga:transactionId transactionId

指标

字段名称 UA 名称 GA4 等效名称
添加到购物车的次数 ga:productAddsToCart addToCarts
浏览后添加到购物车的比例 ga:cartToDetailRate cartToViewRate
结账次数 ga:productCheckouts checkouts
电子商务购买次数 ga:uniquePurchases ecommercePurchases
商品列表的点击率 ga:productListCTR itemListClickThroughRate
商品列表的点击次数 ga:productListClicks itemListClicks
商品列表的浏览次数 ga:productListViews itemListViews
商品促销活动的点击率 ga:internalPromotionCTR itemPromotionClickThroughRate
商品促销活动的点击次数 ga:internalPromotionClicks itemPromotionClicks
商品促销活动的浏览次数 ga:internalPromotionViews itemPromotionViews
商品购买数量 ga:itemQuantity itemPurchaseQuantity
商品收入 ga:itemRevenue itemRevenue
商品浏览次数 ga:productDetailViews itemViews

时间

维度

字段名称 UA 名称 GA4 等效名称
日期 ga:date date
年份 ga:year
月份 ga:month
周序号 ga:week week
一月中的天 ga:day
ga:hour 小时
ga:minute 分钟
月份索引 ga:nthMonth nthMonth
星期索引 ga:nthWeek nthWeek
天索引 ga:nthDay nthDay
分钟索引 ga:nthMinute 第 n 分钟
周几 ga:dayOfWeek dayOfWeek
时段 ga:dateHour dateHour
日期、小时和分钟 ga:dateHourMinute dateHour 分钟
小时索引 ga:nthHour nthHour

目标读者

维度

字段名称 UA 名称 GA4 等效名称
年龄 ga:userAgeBracket userAgeBracket
性别 ga:userGender userGender
有具体兴趣者细分 ga:interestInMarketCategory brandingInterest

生命周期价值和同类群组

维度

字段名称 UA 名称 GA4 等效名称
流量获取广告系列 ga:acquisitionCampaign firstUserCampaignName
流量获取媒介 ga:acquisitionMedium firstUserMedium
流量获取来源 ga:acquisitionSource firstUserSource
同类群组 ga:cohort cohort
ga:cohortNthDay cohortNthDay
月份 ga:cohortNthMonth cohortNthMonth
ga:cohortNthWeek cohortNthWeek

指标

字段名称 UA 名称 GA4 等效名称
用户 ga:cohortActiveUsers cohortActiveUsers
用户总数 ga:cohortTotalUsers cohortTotalUsers

渠道分组

尺寸

字段名称 UA 名称 GA4 等效名称
默认渠道分组 ga:channelGrouping sessionDefaultChannelGrouping