簡體   English   中英

具有不同參數的Google Analytics(分析)Content Experiments動態頁面重定向到默認值

[英]Google Analytics Content Experiments dynamic page with different parameter redirects to default

我的網站只有一個頁面,名為products.php並且顯示了不同的類別(其中約有50個),並帶有諸如products.php?category=books的查詢字符串。 現在,我已經為url products.php?category=books設置了內容實驗,並且一切正常,除了以下事實:當我嘗試訪問任何其他類別時,我都重定向到了上述books類別。 我該如何工作?

理想情況下,我想設置一個適用於每個類別的“動態”實驗,但是如果我只能設置一個類別,而其他所有類別都不會重定向到books類別,那我可以接受。 任何幫助表示贊賞。

實際上,該解決方案非常簡單:只需使用原始url products.php設置內容實驗,而無需其他參數,因為它們會傳播(如果存在的話),如官方google Analytics支持頁面所述

3. URL parameters in your variation pages

If you set URL parameters in your variation pages, then Experiments incorporates
them into what the visitor sees. Let’s say you set your experiment pages as:

Original page: www.example.com/a
Variation page: www.example.com/b?id=50
If visitors arrive with no URL parameters, then they see one of these two pages:

Original page: www.example.com/a
Variation page: www.example.com/b?id=50
If visitors arrive with URL parameters that conflict, then the URL parameters you
supplied during the experiment setup override the URL parameters that visitors
arrive with.

For example, if the visitor clicks a link to www.example.com/a?id=1, the visitor sees one of these two pages:

Original page: www.example.com/a?id=1
Variation page: www.example.com/b?id=50
If visitors arrive with URL parameters that don’t conflict, then the URL parameters are
appended to the page URL. For example, if the visitor clicks a link to
www.example.com/a?cat=1, then the visitor sees one of these two pages:

Original page: www.example.com/a?cat=1
Variation page: www.example.com/b?id=50&cat=1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM