Sometimes your online presence can be spread over multiple websites. A fairly common scenario is to have a website that provides customers with information about upcoming events and your business located on the main domain of your business (e.g. www.audienceview.com). The '
Buy' buttons on this website link to the AudienceView ecommerce platform, in this case a sub-domain of your main domain (e.g. tickets.audienceview.com). Your analytics strategy might be to consider that a visit from website to the other is considered a single visit. With this strategy you can begin to track the behavioural flow between both websites in Google Analytics. You can also ensure that the original source of the transaction is maintained and is not lost when the customer clicks through from your main domain to the sub-domain after having followed some advertising or marketing communication to land on the main domain.
Implemention
The video below demonstrates the steps required to complete this use case. Please watch the video in conjunction with the documentation.
This use case covers implementing sub-domain tracking with Classic Google Analytics. We will cover implementing sub-domain tracking with Universal Analytics in a later use case. This use case assumes that Google Tag Manager is deployed on both your sub-domain (
AudienceView) and your main domain. Once you have Google Tag Manager deployed on both domains the configuration is quite simple and can be incorporated into your normal Google Analytics
pageview tags. It is a good practice to fire your main domain tags within their own container to keep the configuration clean.
Pageview Tag Configuration
Within your Google Analytics
pageview tags there are just two extra pieces of configuration required. This configuration should be identical on the main domain and sub-domain tag configuration.
-
Under More Settings -> Domains and Directories: Check the box next to 'Domain Name' and input the name of your main domain (e.g. audienceview.com).
-
Under More Settings -> Search Engines and Referrers: Check the box next to 'Referrers to Ignore' and enter your main domain into the list box (e.g. audienceview.com and www.audienceview.com). This configuration will stop identifying the main domain as the referrer when users click-through from the main domain to the sub-domain.
Summary
We modified our
pageview tags so that Google Analytics will treat a visit between the main domain and sub-domain as a single visit and not lose any of the source information of the original visit to the main domain. The source information will be present on the whole session which means that it is possible to report on the original source of a conversion in AudienceView when the source first directed to the main domain and the customer followed a buy link to the sub-domain.