简体   繁体   English

如何从 GA4 API 中获取有机搜索关键字?

[英]How to get organic search keywords from GA4 API?

I want to retrieve the keyword search terms used in organic searches using the GA4 data API.我想使用 GA4 数据 API 检索自然搜索中使用的关键字搜索词。

Is this possible while using GA4 connected with Google Search Console?在使用与 Google Search Console 连接的 GA4 时这可能吗?

I've been trying to find the dimension parameter with no luck.我一直试图找到没有运气的维度参数。 I think the equivalent in UA was "ga:keyword".我认为 UA 中的等价物是“ga:keyword”。

Thanks in advance!提前致谢! Marta玛尔塔

The data from GSC is not joined to the GA data when you link GSC to GA.当您将 GSC 链接到 GA 时,来自 GSC 的数据不会连接到 GA 数据。 Despite what it seems like, the data is not truly linked/joined.尽管看起来像,但数据并没有真正链接/连接。 It just makes GSC data be available in GA UI.它只是让 GSC 数据在 GA UI 中可用。

First, GSC's data is given to the users and very likely stored in the DB in an aggregated state rather than raw.首先,GSC 的数据提供给用户,并且很可能以聚合的 state 而非原始数据存储在数据库中。 Second, GSC's data is sampled so strongly that it becomes unjoinable.其次,GSC 的数据被如此强烈地采样,以至于它变得不可连接。 Even if you look at the global aggregate trends, they don't always match.即使您查看全球总体趋势,它们也并不总是匹配。

You can still relate the data from the two sources though.不过,您仍然可以关联来自两个来源的数据。 It will not be able to answer many questions, or give precise answers, but it may give value to a deeper analysis.它无法回答很多问题,也无法给出准确的答案,但它可能会为更深入的分析提供价值。 This would be a good, simple example of how this data can be used together. 将是如何一起使用这些数据的一个很好的简单示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM