你要瀏覽的網頁目前並未提供你慣用的語言版本。你可以在頁面底部選取其他語言版本,或使用 Google Chrome 內建的翻譯功能,將網頁內容即時翻譯成所選的語言。

[UA] Extract dynamic parameters from URLs via filters

If you do not want to, or are unable to, modify your tracking code or page code to define Custom Variables, you have the option to instead use a View filter to extract dynamic-parameter values for Product ID and then share those values as Dynamic Attributes.

Create a View filter

  1. In Analytics, click Admin.
  2. Select the relevant Account, Property, and View.
  3. In the View column, click Filters.
  4. Click + NEW FILTER.
  5. Select Custom filter, and then select Advanced.
  6. In Field A --> Extract A, select Request URI.
  7. In the text field for Field A..., enter a regular expression to identify your product IDs; for example:

    -(\d[^-]*)\.html

    or

    prod_id=([^&\.]*)
  8. In Output to --> Constructor, select User Defined.
  9. In the text field for Output to..., enter $A1.

Your completed filter should look something like the following:

 

 

The dynamic-parameter values that you extract from your URLs become visible in the User Defined report.

Share the dynamic-parameter values as Dynamic Attributes

When you share dynamic attributes with your AdWords accounts, under Required Attributes > Product ID, rather than select a Custom Variable, you can instead select User Defined to share the extracted values with AdWords, and use them as the basis for your Dynamic Remarketing.

這對您有幫助嗎?

我們應如何改進呢?
true
選擇自己的學習路徑

歡迎使用 google.com/analytics/learn 這項新資源,瞭解如何發揮 Google Analytics (分析) 4 的最大效益。新版網站提供了影片、文章、引導式流程等多種資源,以及 Google Analytics (分析) Discord、網誌、YouTube 頻道和 GitHub 存放區的連結。

立即開始學習!

Search
Clear search
Close search
Main menu
8905473967136002232
true
搜尋說明中心
true
true
true
true
true
69256
false
false