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
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:
Under Advanced settings:
(.*)
, which is an
expression that captures all characters.$A1$B1
as the value for that choice.Your reports will now show:
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