简体   繁体   English

将 2 个维度和 2 个指标混合为 1 个维度和 1 个指标

[英]Blending 2 dimensions and 2 metrics into 1 dimension and 1 metric

I have a UA account and a GA4 account.我有一个UA账号和一个GA4账号。

In UA I have: Dimension: Event Category Metric: Unique Events在 UA 我有:维度:事件类别指标:唯一事件

In GA4: Dimension: Event name Metric: Event count在 GA4 中:维度:事件名称 指标:事件计数

Is there a way to blend data in a way that I have 1 dimension (event category OR event name) and 1 metric (unique events OR event count)有没有办法以我有 1 个维度(事件类别或事件名称)和 1 个指标(唯一事件或事件计数)的方式混合数据

I'd really need to come to 1 single dimension and 1 single metric.我真的需要达到 1 个单一维度和 1 个单一指标。

Thanks in advance.提前致谢。

Data studio supports blending data which means to join two or more datasets. Data Studio 支持混合数据,这意味着加入两个或多个数据集。 Here you ased for appending data which is in SQL called an UNION ALL.在这里,您需要附加 SQL 中的数据,称为 UNION ALL。

How to union two dataset in Data Studio如何在 Data Studio 中合并两个数据集

First generate a Google Sheet document with the numbers 0 and 1:首先生成一个带有数字 0 和 1 的 Google Sheet 文档: 在此处输入图像描述

Add this sheet to Data Studio and take care that the column is interpreted as a number:将此工作表添加到 Data Studio 并注意将列解释为数字: 在此处输入图像描述

To each of your datasets from UA and GA4 please add a calculated field dummy with the formula 0 and in the 2nd datset with the formula 1 .对于来自 UA 和 GA4 的每个数据集,请使用公式0添加计算字段dummy对象,并在第二个数据集中添加公式1 Blend these dataset together:将这些数据集混合在一起: 在此处输入图像描述

Since the column test on the left dataset has the value 0 and 1, the other two datasets are unioned.由于左侧数据集上的列test的值为 0 和 1,因此其他两个数据集是联合的。

To combine the two dimensions, please add the + twice:要组合这两个维度,请添加+两次: 在此处输入图像描述 and enter following formula there并在那里输入以下公式

case when test=0 then name else name2 end

and a formula for the metric ( counts and events columns) as well:以及指标( countsevents列)的公式:

case when test=0 then counts else events end

Rather than Blending, if you want to " UNION " two separate tables, currently the Google Data Studio does not support it, however I recommend you to use this tool called Windsor AI, This platform will allow you to see all different kinds of Data Sources and do whatever operations you want with them in one place.而不是混合,如果你想“联合”两个单独的表,目前谷歌数据工作室不支持它,但我建议你使用这个名为 Windsor AI 的工具,这个平台可以让你看到所有不同类型的数据源并在一个地方对它们进行任何您想要的操作。

Suppose, I want data from Google Analytics, I'll simply choose the data source from the account I want to pull the Data from..假设,我想要来自 Google Analytics 的数据,我只需从我想要从中提取数据的帐户中选择数据源..

1 1

From there you can preview your Data and then procced to pull it and from Multiple Tables like here从那里您可以预览您的数据,然后从多个表中提取它,例如这里

2 2

You can then export it to any Data Platform you want然后,您可以将其导出到您想要的任何数据平台

3 3

Hope this Helps.. PS This is a genuine problem that Data Studio has, although Data Studio is relatively new, it lacks a lot of features that can enable it to be a viable platform amongst it's competitors.希望对您有所帮助.. PS 这是 Data Studio 的一个真正问题,尽管 Data Studio 相对较新,但它缺乏许多使其成为竞争对手中可行平台的功能。

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

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