如何为任何产品页面设置分析目标?

发布于 2024-12-01 07:30:12 字数 90 浏览 5 评论 0原文

我正在开发一个电子商务网站,我想为每当用户访问任何产品页面时设置一个 Google Analytics 目标。然而,产品页面都属于不同的类别,并且具有不同的 URL。

I'm developing an E-Commerce site and I want to set-up a Google Analytics Goal for whenever a user visits any product page. However, the product pages are all in different categories and have different urls.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滥情哥ㄟ 2024-12-08 07:30:12

您可以采取两种方法。

更好的方法是统一产品页面 URL 以满足特定模式,以便您可以将目标配置为该模式的头部匹配。

即,如果您的 gimzo 产品 URL 是domain/products/gizmo,并且您的小部件产品 URL 是domain/products/widget,则您可以将目标设置为触发以将 /domain/products 查看为头匹配。

或者,您可以为每个产品综合浏览量设置一个新的综合浏览量/事件。即,在产品页面上,设置一个附加事件来锁定目标。 (这种方法的缺点是它会扰乱跳出率和退出率数字。)

现在,这些方法的一个警告是,单个目标每次访问只能触发一次,因此,您的“目标”只会触发一次,即使如果我在访问中查看 4 个产品页面。

There are 2 approaches you could take.

The preferable way is for you to unify the product page URLs to meet a particular pattern, so that you could configure the goal to be a Head Match on that pattern.

ie, if your gimzo product URL is domain/products/gizmo, and your widget product URL is domain/products/widget, you could set the goal to trigger for viewing /domain/products as a head match.

Or, you could just set a new pageview/event for every product pageview. ie, on the product page, set an additional event to lock the goal against. (The drawback to this approach is that it messes with bounce and exit rate numbers.)

Now, the one caveat with these approaches is that a single goal can only trigger once per visit, so, your "Goal" will only trigger once, even if I view 4 product pages in my visit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文