解决方案实际上非常简单:只需使用原始 url 设置内容实验products.php
而不使用其他参数,因为它们(如果存在)将被传播,如官方谷歌分析支持页面所述:
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