您请求访问的页面目前没有您的语言版本。您可以从页面底部选择其他语言,或使用 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
6335327059322668896
true
搜索支持中心
true
true
true
true
true
69256
false
false