Tracking Goals on a Subdomain?
-
What needs to be done to Analytics to track goal completions on a subdomain?
The main Analytics profile is set up for example.com, but landing pages for paid campaigns are set up at sub.example.com. Thank-you page is sub.example.com/thank-you.php
What needs to be modified in Analytics (or to the Analytics code) or how do the goals need to be set up to track these subdomain conversions all within the same Analytics profile? They're not tracking currently.
Thanks.
-
That seems to be working. I'll test it for a week and see what happens.
I tried that at some point, because that's also what I thought it should be, but it didn't work. Not sure what made the difference.
Thank you.
-
Oh, for your destination, if your profile is using relative URLs (/thankyou.html) you don't need to include the http://sub.example.com in your match, and if you did this may have been why it was not reporting data.
-
Ok, well in that case you don't want event tracking, you can just set visits to that page as a goal and get some even better reports.
Go to admin -> goals (right column) -> create goal -> type: destination
For goal details, just set the destination as regular expression match with this in the field:
/thank-you.php
This regex will match the destination page whether or not it is on a subdomain. You can also assign a value (usually the average conversion amount from transactions leading to that page) or throw in funnel steps if you'd like.
Hope this helps,
Chris Wilson
-
This is how they have it set up:
That's being used on both the domain and subdomains,
The goal in Analytics is set to track when people reach http://sub.example.com/thank-you.php, but it's not tracking.
-
What is your event tracking code and profile tracking code for the subdomain? I personally separate out subdomains into UA-xxxxxxx-2 and so on, but event tracking should still work if you have everything lumped into one subprofile.
Example profile tracking code:
Example event tracking code:
onClick="ga('send', 'event', 'Share', 'Facebook', 'Homepage Stat');"
or
onclick="_gaq.push(['_trackEvent', 'Donate', 'Click']);"
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
-
Event tracking after form validation
Hi, How to implement event tracking after form validation using tag manager? Thanks
Reporting & Analytics | | Alick3000 -
The best way to track internal links in Google Analytics
Hi there, we are a retail business and we have invested in quality editorial content which sits in our Blog at ourwebsite.co.uk/blog/ The Blog links to the main site (an online store) and I want to track the 'value' of the blog by how many clicks the blog content generates back to the main store. At the moment we're using this code on the end of every link in the Blog: ?utm_source=Blog&utm_medium=Widget&utm_campaign=FromBlog Does this affect SEO and is there a better way of doing it? Thanks.
Reporting & Analytics | | Bee1590 -
How to track in Google Analytics
Hello, I am helping a client track traffic using Google Analytics. We recently just signed an agreement with a publisher and they have given original credit using a canonical link. How can I track this? I believe it is showing up under direct/ none and I don't know to measure the success of our new partnership.
Reporting & Analytics | | rmazur0 -
Tracking Clicks on a Global Header Across Multiple Sites
Hey All, A particular client has multiple websites and we're planning on implementing a global header across 15+ sites. I've been looking for a way to track the clicks on this global header across all sites (that is that they are summed up), what's the best way to go about this if I am using Google Analytics (I know Adobe site catalyst could do this no problem with some advanced tweaking), any ideas? I could do the general click tracking route and tag every link but that will only help me if I do that for each site (that being said, if the global header for all sites pulls from a single HTML, then tagging it would technically count all the clicks from all the sites, the only caveat being that I'd have to pick which Google analytics profile I'd want to track the header with). Thoughts? Thanks!
Reporting & Analytics | | EvansHunt0 -
Why am I showing a difference in Goal completion for Adwords and Analytics?
I have conversion tracking setup for Adwords and Goal tracking setup in Analytics. There is a large discrepancy between the two. Anyone have any ideas?
Reporting & Analytics | | EcommerceSite0 -
Multiple-Domain tracking for sister sites- NO retail checkout- Please help
Hello, I have about 5 sites I want to set up multiple-domain tracking in google analytics. All posts I read seem to be focused on cross-domain tracking for the purpose of tracking a visitor from one domain across another domain for shopping cart check outs. I don't need that. I have about 3 sister sites (mastersite.com, sistersite1.com, sistersite2.com, sistersite3.com) related to my primary site. I want 1 Master Analytics Profile to track traffic for all of these sites combined. My visitors will not jump from mastersite.com over to sistersite1.com. There will be no cross-domain visits. How can I set up 1 master google analytics profile that will aggregate traffic data from all sites and present the data to me in one analytics profile. Please help
Reporting & Analytics | | AndreGant0 -
301 Tracking with Google Analytics hurts SEO?
Hey guys, I have an old-domain.com and a new-domain.com. old-domain.com has reputation and through a 301 redirect it's handling it over to new-domain.com. I want to know how many people still visit old-domain.com and track this with Google Analyitcs. I read the best solution for this would be a Google Campaign URL. My question: Does a URL like "http://www.new-domain.com /?utm_source=&utm_medium=redirect&utm_campaign=" hurt the effectiveness of the 301 redirect?
Reporting & Analytics | | optimiert-es0 -
Setting up Goals in Google Analytics that involve a 3rd party site
I've set up several goals for one of my clients in Google Analytics. The ones that relate to things on the site -- such as clicking on the "Contact Us" button -- work just fine. However, I set up one that is tracking when someone clicks on a purchase button, which sends the user to a third party site (PayPal). This one doesn't seem to work. (I purchased and item and the goal was not recorded). Looking to see if I have to do anything different when setting up the goal.
Reporting & Analytics | | EricVallee340