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
-
Fixing Bounce Rate between Domain and Subdomain
Currently, the way our site is set up, our clients generally visit our homepage and then login through a separate page that is a subdomain, or they can read our blog/support articles that are also on separate subdomains. From my understanding, this can be counted as a bounce, and I know this sorta of site structure isn't ideal, but with our current dev resources and dependencies, fixing this isn't going to happen overnight. Regardless, what would be the easiest way to implement this fix witihn the Google Analytics code? EX: If someone visits our site at X.com, and then wants to login at portal.X.com, I don't want to count that as a bounce. Any insight is appreciated! Thanks
Reporting & Analytics | | KathleenDC0 -
Tracking sessions from a sub-domain that is 301 redirected to main domain
Hi, one of my client is launching a new site on a subdomain newsite.brand.com.au but will use a shorter URL on the packaging on their new rang of products to be sold in supermarkets, prompting shoppers to visit xxx.brand.com.au. This specific sub-domain xxx.brand.com.au will be 301 redirecting to newsite.brand.com.au How can I identify and track accurrately all the visits coming from xxx.brand.com.au to newsite.brand.com.au?The visits from sub-domain xxx.brand.com.au will be attributed to direct channel I guess. Is it worth adding GA on this 301 redirected sub-domain xxx.brand.com.au or there another way to identify those visits on newsite.brand.com.au ?
Reporting & Analytics | | mecglobal0 -
Trying to locate the e commerce tracking code on shopify?
Hi everyone, I am doing a google analytics site audit for an e commerce site using shopify. I can see e commerce data on GA but I'd like to make sure that e commerce tracking code is present and correct. I have the shopify thank you page checkout.shopify.com/example1234556 but cannot locate the client's e commerce tracking code http://cl.ly/191F0Z460p1L. I guess this is normal since we are on the shopify domain. Is this normal to not have the client e commerce tracking code present on shopify thank you page? Does shopify have a system in place that integrates and or generate this e commerce tracking code for the client? Finally, how can I verify if the ga e commerce tracking code on shopify is correct and in place? Thanks for letting me know!
Reporting & Analytics | | Ideas-Money-Art0 -
404 figures started reflecting in goals overview
Hello Experts, In google analytic, in admin section i have set the 404 page goal without funnel since very long time. Now when i have shifted from old GTM to New version of GTM 3 days before and suddenly 404 figures started refelecting at below path in google analytic - In Conversion > Goals > Overview --404 ( Goal 6 completions ) 32 why it appears suddenly? how to optimize this 404? Thanks! Dev
Reporting & Analytics | | devdan0 -
Not Provided Filter is not tracking goals
I have setup ‘Not Provided’ filter, but it is not tracking conversions accurately. Basically the filter displays goals url’s as conversion urls & not the landing url’s. For example – I would expect home page to have maximum conversions, but its shows higher visits & no conversions. Has anyone experienced this? I have attached screenshot of the ‘Not provided’ Filter. 0L0fS3h SxzRP7w
Reporting & Analytics | | mozwoz0 -
IP address changed, subdomains added - how will affect?
Hello, Two weeks ago we have changed IP address of our website, also we've added new subdomains for static content (like img.domain.com & js.domain.com) and changed the links on the site accordingly. The old IP is also working and the old links are accessible too. For some reason, since the change, we see a SE (google) traffic constant drop everyday. I've read only Google's support (http://support.google.com/webmasters/bin/answer.py?hl=en&answer=34437) that such change shouldn't affect the ranking anyhow. On the other hand I've consulted with SEO people and was told that such change may affect in the close new feature (for couple of weeks) and then bring the ranking back. I would like to hear another opinion, I want to get back to our board with approved answers. Please advice. Thanks.
Reporting & Analytics | | maddogx0 -
Subdomain referral
Hi, We have two sites mysite.com and aa.mysite.com. We want to track these sites separately. We created two different properties with IDs UA-XXX-1 for main domain UA-XXX-2 for subdomain. gaq code for main domain is as following, gaq code for subdomain is as following, It works well for subdomain. But we want to see traffic from subdomain to main domain as referral.
Reporting & Analytics | | OkanKortan
What is wrong with the gaq code of main domain?
Do i need to change code or is it enough to inactivate subdomain tracking option in profile settings of main domain? Thanks in advance,0 -
How to track and verify 301 redirects from 22 old websites to a new one?
Me and my team have just finished a website which will replace 22 old ones (6 main domains and 16 sub-domains, 19 in wordpress and 3 in Joomla). This means more than 20,000 links that we're trying to redirect with the most granularity possible. But we're experiencing a lot of conflicts because of the quantity and variety of links and the interference of Wordpress. And I'm having trouble finding which links are working and which aren't. I have a URL list in a plain .txt file for every website, is there a tool that can check these links for me? I've tested many wordpress plugins, but I didn't find a good one. Thanks!
Reporting & Analytics | | bernardovailati0