2013-02-25 56 views
0

我有一個網站只有一個頁面名爲products.php和我顯示不同的類別(其中約50人)與查詢字符串如products.php?category=books。現在,我已經爲網址products.php?category=books設置了內容實驗,並且一切正常,除了當我嘗試訪問任何其他類別時,我重定向到上述books類別。我怎樣才能得到這個工作?谷歌分析內容實驗動態頁面與不同的參數重定向到默認

理想情況下,我想設置一個適用於每個類別的「動態」實驗,但如果我只能設置一個類別,而其他所有其他類型都不會重定向到類別,則可以使用。任何幫助表示讚賞。

回答

1

的解決辦法是在年底相當簡單其實:剛纔設置與原來的URL products.php的內容實驗沒有額外的參數,因爲它們(如果存在的話)將得到傳播,作爲official google analytics support page解釋說:

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