[英]GA google / organic traffic from GA API
Hello there I am trying to get Google/ organic traffic for a particular month using GA API. 您好,我正在尝试使用GA API获得特定月份的Google /自然流量。 Using this
使用这个
Where I have tried dimensions as ['month', 'year' ] and ['sourceMedium'] using the metrics as ['organicSearches'] but I am getting the values that are not matching which are shown on the dashboard. 我曾尝试使用[[organicSearches]]作为指标,将维度尝试为['month','year']和['sourceMedium'],但我却获得了仪表板上显示的不匹配值。
Any suggestions what dimension should I use to get this ?? 任何建议我应该使用什么尺寸来获得此??
I imagine you're looking for visits, so you'll have to include that as a metric. 我想您正在寻找访问次数,因此必须将其作为指标。 You get
google / organic
by providing a filter for ga:sourceMedium
. 您可以通过为
ga:sourceMedium
提供过滤器来获得google / organic
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.