本文介绍了跟踪Google Analytics中跨子域的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个平台,一个营销网站和一个SaaS解决方案。

Marketingsite位于www.domain.com之类的主要域名上,而SaaS解决方案位于我们的子域名sub.domain.com上。



我想通过我们的市场环境追踪我们的SaaS解决方案上注册客户的转换率。

如果我进入marketingsite的目标,我可以选择一个像www.domain.com/signup-completed这样的目标的相对路径,但实际注册在sub.domain.com/signup-completed上。如何在营销网站上跟踪这些信息?



这两个网站在同一个帐户下设置为不同的属性。

解决方案

首先, 属性对于子域和域都必须相同,即相同的UA id。



其次,要从子域跟踪目标,您需要在网页维度中包含网址的每个部分。通常情况下,您将无法区分哪个网页位于哪个域上



对于上面的内容,您需要创建一个过滤器来修改URL以包含域:



步骤:


  • 在查看(配置文件)设置页面中,单击添加过滤器链接。
  • 选择添加新过滤器并为过滤器提供名称。

  • 选择自定义过滤器并在过滤器类型设置中选择高级。



  • 在高级设置下:




    • FieldA应设置为主机名

    • FieldB应设置为请求URI

    • 将字段A和字段B的值设置为(。*),它是一个
      表达式,用于捕获所有字符。
    • 将Output To - > Constructor选项设置为请求URI并提供
      $ A1 $ B1 作为该选项的值。


    您的报告现在将显示:


    • www.domain.co m / example.html

    • sub.domain.com/moreexample.html



    捕获您的URL的www.domain.com部分,并将其包含在内容报告部分的页面网址开头。

    然后,您可以轻松设置目标: )






    PS : 我建议创建新视图,放置此过滤器,然后创建目标,以便其他视图中的数据不会受到影响


    We have two platforms, a marketing site and a SaaS solution.

    The marketingsite is on the main domain like www.domain.com and the SaaS solutions is on our subdomain sub.domain.com.

    I would like to track the conversion rate of the customers signing up on our SaaS solution through our marketingsite.

    If I go into goals for the marketingsite I can choose a relative path to the goal like www.domain.com/signup-completed, but the actual signup is on sub.domain.com/signup-completed. How can I track this on the marketing site?

    The two sites are setup as different properties under the same account.

    解决方案

    First of all, the property must be same for both subdomain and domain, i.e. same UA id.

    Secondly, to track goals from sub domain, you need to include every part of the URL in the Page dimension. Normally you will not be able to distinguish which page is on which domain

    For the above you need to create a filter that would modify the URL to include domain:

    Steps:

    • In the View (Profile) Settings page, click the Add Filter link.
    • Choose Add New Filter and provide the filter a name.
    • Choose Custom Filter and select Advanced on the Filter type settings.

    Under Advanced settings:

    • FieldA should be set to Hostname
    • FieldB should be set to Request URI
    • Set the values for both Field A and Field B to (.*), which is anexpression that captures all characters.
    • Set the Output To --> Constructor option to Request URI and provide$A1$B1 as the value for that choice.

    Your reports will now show:

    • www.domain.com/example.html
    • sub.domain.com/moreexample.html

    This will capture the www.domain.com portion of your URL and include that at the beginning of your page URL in the content reports section.

    You can then easily set the goals :)


    PS: I would recommend to create new view, place this filter and then create goals, so that the data in other views wont be affected

    这篇关于跟踪Google Analytics中跨子域的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 16:58