Welcome to WebmasterWorld Guest from

Forum Moderators: Robert Charlton & andy langton & goodroi

Message Too Old, No Replies

How to create and track Hubpages styled subdomains for my site?

6:25 am on Jul 26, 2011 (gmt 0)

Full Member

5+ Year Member

joined:July 30, 2010
votes: 0

just like hubpages, i recently converted my site which has ton of user generated content by creating subdomains hub style way (i.e. according to author)

now as hundreds of subdomains have been created, would I see now a drop in traffic in google analytics (because in analytics i am not tracking individual subdomains, i am only tracking main domain)

so what should i do to track whole traffic?

how should i create subdomains which are generated dynamically as new authors sign up and start posting? how should i track the amount of the traffic they are getting through analytics?
4:26 pm on July 26, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 6, 2007
votes: 0

You can track subdomains into the same profile. Instructions (very loosely termed 'instructions') here:


hope this is what you're looking for!
4:32 pm on July 26, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 6, 2007
votes: 0

Actually I'm not 100% that's going to give you the information you need.

I have added a filter to the profile in Analytics with the following settings:

Filter type: custom filter / Advanced
Field A -> Extract A: Hostname / (.*)
Field B -> Extract B: Request URI / (.*)
Output to -> Constructor: Request URI / $A1$B1
Field A Required: Yes
Field B Required: No
Override Output Field: yes
Case sensitive: No

My understanding of what this does may be completely wrong, but I think it means call the hostname (ie subdomain.example.com) Field A, then the path to the web page Field B. Put them both together and report the whole lot where analytics would normally report just the bit after the domain name.

hopefully you can make some sense of that!

2:33 pm on July 27, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Mar 22, 2011
votes: 0

Google Analytics has a specific option for tracking subdomains when generate your tracking code.

For some reason, though, the different GA interfaces give you different tracking code. When you select "One domain with multiple subdomains", the current version adds a single line...

_gaq.push(['_setDomainName', '.example.com']);

...whereas the new version adds two lines...

_gaq.push(['_setDomainName', 'example.com']);
_gaq.push(['_setAllowHash', 'false']);

I'm not sure which one is preferred.

Edit: Pff... The "Modify the tracking code" link on the page chrism linked to above blends the two into a third option; the two lines from the new interface, but with the dot-prefixed domain name of the current interface.

Google, Google, Google...

3:32 pm on July 27, 2011 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member netmeg is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 30, 2005
votes: 200

I had a hard time getting subdomain tracking right in GA, at least, it never seemed to be right to me.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members