Google 优化实验定位错误 URL

Google Optimize Experiment targeting wrong URL

我在特定 URL 上设置了一个实验,在该实验中我不发送任何流量 (我用于其他登陆页面的域名相同,但 URL 中的参数不同)

几天前我开始了实验,没有发送任何流量 现在我看到实验被触发了大约 5000 次。 我仔细检查了我的分析报告,发现无法访问本应触发测试的主页。举例说明:

这是我的 运行:

http://domain1/landingpages?id=1

http://domain1/landingpages?id=2

这是我创建的测试:

http://domain1/landingpages?id=3

50% 重定向:

http://domain1/landingpages?id=4

实验只应在 id=3 页面上触发,但它确实在 id=1 和 id=2 页面上触发。知道如何让触发器仅在 "id=3" 位于 url 时发生吗? 目前我的配置如下:

"WHEN Url Matches "http://domain1/landingpages?id=3" "

URL targeting documentation说明了你的情况。 (由我强调。)

Use matches when there are query string parameters in URLs that you don’t want to include in the matching. Matches can be more flexible than equals because it adheres to the following rules:

  • Ignores query string parameters and fragments.
  • Case insensitive.
  • Normalized to remove a www. prefix.
  • Normalized to a remove a trailing slash.
  • HTTP and HTTPS are optional (HTTP will match HTTPS).

在优化中验证这一点:

所以您应该简单地使用 select Equals 运算符并使用 http://domain1/landingpages?id=3 作为值。

如果可能出现其他参数,那么你可以为此构建一个regex,以在各种参数中包含id=3。例如:

http:\/\/domain1\/landingpages\?(.*&)?id=3(&|$)

您可以选择使用 Query parameter targating,并分别为基 URL 和 id 参数构建规则。