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
-
Conversion Tracking Setup; Is there a decent guide?
Ok, I'm looking into how to set up conversion tracking for our website, and frankly, I'm totally confused. In looking at Google documentation, I'm not sure if I need to use Tag manager, throw some code into the site with jQuery, or sacrifice a goat. I'd like to implement a variety of tracking goals / events / things on several websites, so I'm really looking for a comprehensive guide. I couldn't find any in depth stuff on google. Help?
Reporting & Analytics | | MichaelGregory1 -
301 Redirect tracking
Hi All, I have a 301 redirect tracking issue. I have a domain, say www.123.co.uk and I have that domain 301 redirecting to www.abc.co.uk. Looking in analytics, I do not see any referral traffic sources for the redirect i.e. I do not see www.123.co.uk as a referral (and I know it does sent traffic). My question is - how can I implement a solution that will show referral traffic from www.123.co.uk to www.abc.co.uk as a referal in analytics? Hope that makes sense?
Reporting & Analytics | | Webrevolve0 -
Setting up goals in Google Analytics
Hello! This question is seems so obvious that I'm also ashamed to ask... almost. If the goal of a website is to have a visitor complete a contact form, when setting up the Goal in Google Analytics (as a "URL destination") the URL of choice would be the form's thank you page, correct? Because that's the page that proves the visitor completed the task we want them the achieve. Right? Thanks!
Reporting & Analytics | | SmileMoreSEO
Erik0 -
What's the final word on Image Search tracking in Google Analytics?
Sorry if this has been answered but I can't seem to get a straight answer to my questions by searching around. How is traffic referred by Google Images counted in Google Analytics? I know it used to be referral traffic from google.com/imgres. A lot of things I have read say that it should all be under google/organic now, but my site still gets referral traffic from google.com/imgres, so that can't be. However I also get traffic as google/organic that I am pretty sure is from image search, because we don't rank for the keyword normally, but we do for image search. What's the deal? How is traffic from an embedded image in a regular result page counted? How can I segment my image search traffic better? It would be great to see image search traffic as it's own medium. I found a script here -- http://jrom.net/google-images-in-google-analytics -- that looks promising, has anyone used it or can recommend another way? I haven't used the GA API very much so I want to make sure the script is kosher and won't screw up my numbers.
Reporting & Analytics | | tact0 -
How do i get Social Media Actions Tracked in GA
Greetings from 17 degrees C wetherby UK 🙂 http://i216.photobucket.com/albums/cc53/zymurgy_bucket/how-do-get-this.jpg The above url pints to dat I'd love to see in my Google analytics account but instead all i can see is this:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/no-socail-media-engagementcopy.jpg What i really want to measure is Facebook Likes etc not just referral traffic from social media sites. So my question is please... "Do i have to add additional tracking code to Google analytics as explained here - https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial " Thanks in advance,
David0 -
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 -
Track image searches on google analytics
How can i track image searches on google analytics? To filter the refferers by image.google or /imgres does not work in new google analytics (and brings an impossibly small number on old GA). also, this would not cover local google image refferers, that don't come from image.google.com. anyone knows how to find image search sources? i haven't found anything helpful in google's documentation or forums. thanks!
Reporting & Analytics | | zeepartner0 -
How to track clicks and "impressions" on a certain botton on my website.
I would like to track the amount of impressions on all pages in a "sub category" doman.com/subcategory/all-impressions-to-these-pages and clicks to a certain button for a contact form. I know that I can add snipets to my analytics code but I'm not sure how to and witch snipet to include. Is it possible?
Reporting & Analytics | | SuperlativB0