Track subdomain in analytics
-
Hi,
Our jobs section has recently been moved on to a subdomain https://jobs.ourwebsite.co.uk/home.html which is handled by a third party. Our analytics for the jobs section was lost as no code was added to the pages. Previously it was part of the main site.
How do I track it as a subdomain so that it appears to be part of our main site?
We have the old GA and universal GA code on the site
Thanks
-
Thanks Hutch
-
You would need to use a series of filters and/or regular expressions to draw out only your job pages based on the domain and then place information into the URI. Your filters can be found in the admin section under your view. It takes a good amount of testing to get filters like this right, and a small mistake can destroy a lot of data so make sure not to use your main account and instead create a testing account to fine tune this.
-
Thanks.
How do you set up the find and replace filter?
-
Using universal is it not hard to, you can just place the code onto the 3rd party site. To make it easy to look at you will want to make a find and replace filter to target only the traffic to your 3rd party site and change the URI so that it will make more sense when looking at it (if you do not then it will see your home page and the main page of the jobs site as just "/"). Make sure that you set up a test profile for your filters so that you do not cause problems with your data. This is the more complex way of looking at it, if you only care how many people click off to your jobs section and not how they interact with it you can place event tracking code onto any link that goes to the job section.
All of this is much easier if you use Google's Tag Manager as the cross domain linking or adding custom event calls become even easier to implement.
-
Hi, I think the 3rd party can add code.
Our main site currently has both old and universal code
-
Does your 3rd party service have the ability to add GA code to include the necessary cross domain tracking code or does it use universal analytics?
-
Thanks, but still unsure. I've also read
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite
http://www.ericmobley.net/guide-to-tracking-multiple-subdomains-in-google-analytics/
-
Hi!
There was an article about this on Moz main blog: http://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics
Maybe it will be helpful for you.
Gr., Keszi
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Whats (Other) traffic in Google Analytics?
When I look through all our clients, a few are receiving the majority of their traffic from (other). [ Acquisition > Channels > (Other) ]. The only option in (other) is "website" or "offline", whatever that may be. And even weirder, the avg session duration is 0:00. Any idea what this may be?
Reporting & Analytics | | W2GITeam0 -
Huge Analytics discrepancy when I turned off Analytics Module & Turned on GA via GTM
Hello, I was running universal GA via a GA Drupal module. We setup Google Tag Manager and setup a GA tag to run through GTM. When we pushed the GTM container live our Real Time was at around 1900 and when we turned off the Drupal module the Real Time was reporting around 1100. After 24 hours the sessions for that day were about 100k lower than what they usually are. Any ideas Why the larger discrepancy? Any places that are obvious to look? *I didn't setup the original Drupal GA module, nor do I know who did. Thanks
Reporting & Analytics | | JJLWeber0 -
When I click an outgoing link from Analytics - why are they all broken?
On one of my websites, if I visit the Behavior > Site Content section of Anayltics any link I try to open is broken. Google Analytics is appending the domain before every URL causing it to open in a popup but as a broken link. Example: Trying to click a link to a page on the website at this URL: http://www.thisisanexample.com/test.html But in the Analytics popup browser this is what it tries to load: www.thisisanexample.comhttp://www.thisisanexample.com/test.html So I can't preview any of the content within Google Analytics. I feel like this is a settings issue somewhere... Any ideas?
Reporting & Analytics | | ShawnW0 -
How do I track a primary domain and a subdomain as single site in Google Analytics?
Our website consists of a primary domain (marketing focused) and subdomain (ecommerce platform). The two sites look and function as one site even though they are using different technology. I would like to track the primary domain (example.com) and the subdomain (shop.example.com) as a single site in Google Analytics. The subdomain will be set up with GA ecommerce tracking as well. Can someone provide an example of the GA snippet that each would need?
Reporting & Analytics | | Evan340 -
Moving data between Google Analytics Properties
Last summer we setup another Google Analytics property for us with Universal Analytics and have been running this alongside the old Google Analtyics property. is there a way of exporting all the old data from the old property into the new Universal Analytics property?
Reporting & Analytics | | ese0 -
Has anyone experienced Google Analytics track the page visit to a "thank you" page, but not the goal conversion?
Has anyone experienced where Google Analytics would track the page visit to a "thank you" page, but not the goal conversion that should result? The goal had worked for a long time as it is as just a goal url with head match. No funnel. Not case sensitive. For about four days now, no conversions have been recorded, but Google Analytics shows hundreds of people visited the page that should trigger the goal. Additionally, we have received the hundreds of leads. A Screaming Frog search shows the code is embedded throughout the site. For the interested, the GA code looks like (and the 8 Xs are the correct number on the site): Am I missing something?
Reporting & Analytics | | 352inc0 -
Google analytics advanced segments
Ok, I need help with a simple (although, for some reason, I'm having trouble with it) advanced segment. Dilemma**:** All of our techs have a backend cookie that they use to log into our website. I want a way toexclude all visites where the landing page contained this in the url:/backend/cookie.php?username= Advanced Segment: We have a lot of techs and each one of them has a different "username=example". So how can I set up an advanced segment where it will exclude any visit where the visitor came in one a landing page containing /backend/cookie.php?username=
Reporting & Analytics | | NerdsOnCall0 -
Editing Google Analytics eCommerce Javascript for Volusion
Does anyone know how to edit the ecommerce javascript with Volusion dynamic variables? I thought I did it correctly but none of the information got recorded in GA. It recorded that there was a transaction made but not info on the purchase price, order #, etc. This is the current code I am using: NOTE: In Volusions customer support center they provided this information: Where Order-Specific Information is Generated Order-specific information can be generated by JavaScript on the OrderFinished.asp page within Volusion. On this page, two JavaScript arrays will be initialized that advanced users may need to be aware of. The arrays and their contents are as follow:
Reporting & Analytics | | jhooley
Order Array Contents Order[0] = Order ID
Order[1] = Unused
Order[2] = Payment Amount
Order[3] = Affiliate Commisionable Value
Order[4] = Sales Tax
Order[5] = Total Shipping Cost
Order[6] = Billing City
Order[7] = Billing State
Order[8] = Billing Country OrderDetails Array Contents OrderDetails[X][0] = Order ID
OrderDetails[X][1] = Order Detail ID
OrderDetails[X][2] = Product Code
OrderDetails[X][3] = Product Name
OrderDetails[X][4] = (unused)
OrderDetails[X][5] = Product Price
OrderDetails[X][6] = Quantity Note that in the above example, X refers to a line item number (beginning from zero). Note that there can be multiple Order Details arrays - one for each item contained within an order. I'm a newbie at Analytics installation and could really use any help. Thanks!1