字幕列表 影片播放
(bright music)
(明亮的音樂)
- [Dana] In my experience,
- [Dana]根據我的經驗。
I find that custom dimensions and metrics
我發現自定義的尺寸和度量
are one of the most underused features of Universal,
是環球公司最未被使用的功能之一。
and they can be incredibly useful
而且它們可能是非常有用的
for your analytics deployments.
用於你的分析部署。
For example, in a lot of our analytics deployments,
例如,在我們的很多分析部署中。
we'll set the Google Tag Manager container ID
我們將設置谷歌標籤管理器的容器ID
as a custom dimension,
作為一個自定義維度。
which means that we know exactly how that data
這意味著,我們確切地知道該數據是如何
got into Google Analytics in the first place.
一開始就進入了谷歌分析。
Simo Ahava has an excellent post
Simo Ahava有一個很好的帖子
on useful custom dimensions for Universal
關於通用的有用的自定義尺寸
that you can check out at this link.
你可以通過這個鏈接查看。
We've used many of these dimensions
我們已經使用了許多這樣的尺寸
for our client's analytics implementations over the years,
多年來為我們客戶的分析實施提供服務。
but now with GA4, we, of course, need to rethink
但現在有了GA4,我們當然需要重新思考
how we are using custom dimensions and metrics.
我們是如何使用自定義維度和指標的。
These custom definitions have been overhauled in GA4,
這些自定義的定義在GA4中得到了全面修改。
which means you can't just take what you had at Universal
這意味著你不能只是把你在環球公司的東西
and move it over to GA4.
並將其轉移到GA4。
In Universal, there were four possible scopes
在環球公司,有四個可能的範圍
of custom dimensions:
的定製尺寸。
hit, session, user, and product.
命中、會話、用戶和產品。
But in GA4, the custom dimensions
但在GA4中,自定義尺寸
only have the scope options of user or event,
只具有用戶或事件的範圍選項。
nothing in between.
兩者之間沒有任何關係。
If you had session
如果你有會議
or product custom dimensions at Universal,
或在環球公司的產品定製尺寸。
you'll have to do a bit of thinking to see
你必須做一些思考才能看到
how you can move them over to GA4.
你如何能把它們移到GA4上。
As for custom metrics, you had the scopes
至於自定義度量,你的範圍是
of hit or product, and the metric could be formatted
的命中率或產品,並且該指標可以被格式化為
as integer, currency, or time.
為整數、貨幣、或時間。
In GA4, you don't have the product scope any longer,
在GA4中,你不再有產品範圍了。
but you do have a lot more options
但你確實有更多的選擇
for the unit of measurement.
為計量單位。
One great new feature is that
一個偉大的新功能是,
unlike the previous limit of 20 dimensions in 20 metrics,
與之前的20個度量衡中的20個維度的限制不同。
you can now create
你現在可以創建
100 event scope custom dimensions or metrics
100個事件範圍的自定義維度或度量
and 25 user-scoped.
和25個用戶範圍的。
And unlike Universal,
而不像環球公司。
you can archive definitions that you are no longer using.
你可以將你不再使用的定義歸檔。
But note that if you do this, you cannot recover it.
但要注意的是,如果你這樣做,你就不能恢復它。
For product scope dimensions and metrics,
對於產品範圍的尺寸和度量。
Google would like you to use their recommended events,
谷歌希望你使用他們推薦的事件。
which you can find here at this link.
你可以在這裡找到這個鏈接。
As for session-scoped dimensions,
至於會話範圍的尺寸。
in a lot of cases, you can probably just turn these
在很多情況下,你可能只需要把這些
into hit or user scope dimensions without any issues.
到命中或用戶範圍的尺寸,沒有任何問題。
For example, a common session-scoped custom dimension
例如,一個常見的會話範圍的自定義維度
I would see is if the user is logged in or not.
我想看的是用戶是否已經登錄。
I would suggest that you could either make that user-scoped
我建議,你可以把這個用戶範圍定為
and use the User-ID feature,
並使用User-ID功能。
or make it event-scoped just to record the fact
或使其成為事件範圍,只是為了記錄事實
that someone did actually sign in.
有人確實簽到了。
User-scoped dimensions can be remade in GA4,
用戶範圍的尺寸可以在GA4中重新制作。
but there is one important change.
但有一個重要的變化。
In Universal, if a user-scoped dimension
在Universal中,如果一個用戶範圍的維度
was set in the middle of the session,
是在會議中間設置的。
the dimension was applied
該尺寸被應用
to every event of the same session,
到同一會議的每個事件。
even for things that happened
甚至為發生的事情
before the user dimension was set.
在用戶維度被設置之前。
In GA4, user-scoped dimensions are set for all the events,
在GA4中,用戶範圍的維度是為所有事件設置的。
but only for the moment it set onwards.
但只是在它開始的那一刻。
Past events are not modified.
過去的事件不被修改。
To create a user-scope custom dimension in GA4,
要在GA4中創建一個用戶範圍的自定義維度。
you can use the GA4 configuration tag in Google Tag Manager
你可以在谷歌標籤管理器中使用GA4配置標籤
and then add the information in the User Property section.
然後在用戶屬性部分添加資訊。
If your user property won't be set right away at page load,
如果你的用戶屬性不會在頁面加載時立即被設置。
but perhaps with a different trigger,
但也許有一個不同的觸發器。
you can create additional GA4 configuration tags,
你可以創建額外的GA4配置標籤。
specifically to set that user-scoped custom dimension.
專門設置該用戶範圍的自定義維度。
Just make sure to uncheck the
只要確保取消對
Send a page view event when this configuration loads
當此配置加載時,發送一個頁面視圖事件
checkbox, or else you could end up
複選框,否則,你可能最終
double counting page views.
重複計算頁面瀏覽量。
The most common use of a custom dimension
自定義維度最常見的用途是
is along with an event.
是伴隨著一個事件。
Let's say, for example, you want to track
比方說,你想跟蹤
specific elements that are clicked on on a page.
在一個頁面上被點擊的特定元素。
In this example, I'll be using the Kick Point website
在這個例子中,我將使用Kick Point網站
and we have a rocket ship of the bottom of each page
我們在每一頁的底部都有一個火箭飛船。
that we track clicks or taps on.
我們追蹤的是點擊量或點選量。
This is what the event looks like
這個活動看起來是這樣的
when it goes off to GA4
當它轉到GA4時
with an event name of ui_engagement
事件名稱為ui_engagement
and the element name of rocketship.
和元素名稱為火箭船。
Now, the element name parameter isn't in the list
現在,元素名稱參數不在列表中了
of automatically collected information.
自動收集的資訊。
It's something new that we made up.
這是我們編造的新東西。
So in order for this to show up in reports,
是以,為了讓這一點在報告中顯示出來。
we need to add it as a custom dimension.
我們需要將其作為一個自定義維度來添加。
Obviously, this is very different
顯然,這是很不同的
from how custom dimensions worked in Universal.
從Universal中自定義尺寸的工作方式。
To add a new dimension,
為了增加一個新的層面。
go to configure custom definitions,
轉到配置自定義定義。
and then click Create custom dimensions.
然後點擊創建自定義尺寸。
Then enter your dimension name
然後輸入你的尺寸名稱
and which event parameter corresponds to.
以及事件參數對應的是哪一個。
You don't need to name the dimension
你不需要為這個維度命名
the same as the event parameter,
與事件參數相同。
but I have been in order to keep things simple.
但我一直是為了讓事情變得簡單。
Custom metrics are set up in exactly the same way,
自定義指標的設置方式完全相同。
just under the Custom metrics section instead.
而只是在自定義指標部分下。
You can see here how many more options we have
你可以在這裡看到我們還有多少選擇
for the unit of measurement,
為計量單位。
lots of interesting possibilities.
有很多有趣的可能性。
Now that you've registered
現在你已經註冊了
your custom dimensions and metrics,
你自定義的尺寸和指標。
within 24 hours, you should see them in the various reports
在24小時內,你應該在各種報告中看到它們。
as you use GA4,
因為你使用GA4。
and of course, don't forget to record these
當然,別忘了記錄這些
on your tracking sheet.
在你的跟蹤表上。
(casual music)
(休閒音樂)