GA snippets for subdomains and best tracking in MOZ
-
Hey there,
I have a blog running at blog.URL.com. I need to add Google Analytics and I want to track the value of this subdomain as separate from the main URL.
Can I do that? If I do a unique snippet in the header of the blog is that the right way to go? The main site is on an antiquated CMS system and will be converted over the next few months to a full on WP site, does that change anything long-term?
Thanks in advance for your help.
Cheers,
Lisa
-
Another option is add a custom variable in Google Analytics and add the snippet to your pages:
ga('send', 'pageview', { 'dimension1': dimension2 });
'dimension1' is the variable which has been setup
dimension2 is the passing variable i.e. 'Blog'
Hope this also helps, the normal GA code will also need to be included, however this will segregate the blog traffic, but include the traffic in your overall view.
It all depends on how you want to view the traffic on the sites.
I also use this method to segregate product groups.
-
Thanks so much Dana, that's exactly what I needed. L--
-
Hi Lisa,
you can add Google Analytics to track the value of the subdomain as seperate from the main. You would need to create a new property in Google Analytics and then place the snippet into each page of your blog site, making sure to not include the one from URL.com.https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite?hl=en
Hope that helps!
Good Luck!Dana
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
-
Moz Rankings vs DuckDuckGo
Hello, So we have a client that’s only interested in a handful of keywords. We would like track his rankings through a Moz Campaign but he currently uses Duck Duck Go to check them. Strictly from an accuracy perspective (and not necessarily added features like Mobile Rankings) is there any arguments we could use to convert them to Moz? If not we will let them know but any input would be appreciated. Looking forward to hearing from all of you! Thank you in advance for the help. Best,
Moz Bar | | Ben-R0 -
Is Moz Bot Broken?
Moz Bot says I have millions of issues with duplicate content. One item says that it has over 50 duplicates! I downloaded the CSV it gave me to look into it. All of my products have many different ways to get them, so I've set up rel=canonicals for the master one. So, I'd assume Mozbot would ignore those. But the interesting thing I've found is that of these 50 duplicates, some of them (on the same CSV I downloaded) are completely different products, with completely different URL's. and completely different titles and completely different meta descriptions and completely different product descriptions. So, 3 questions: Is Moz bot broken? Does it not recognize canonicals? Why is it seeing 3 very different products as exactly the same product? I'm so confused and since I work for a national company, the only way I can give actual examples is through a private message session. I guess I'm wondering if anyone else has come across this issue? Because I'm completely baffled.
Moz Bar | | DIAMA0 -
What's the best way to track broad search terms?
I'm finding out that Moz only tracks exact match results for key terms. Does anyone know of a good tool for tracking broad search terms? So for example: keyword1 keyword2 keyword3 as opposed to "keyword1 keyword2 keyword3"? Any help is appreciated!
Moz Bar | | controlyours
Thanks! -David0 -
My H1 is not readable in MOZ
I have tried a lot to no success. I can read the H1 in the source of the browser. And I have tried without any classes(joomla). Does anybody experienced something similar or have a clue why MOZ can't read my H1? Here is the link to the page: http://generalvarmepumpe.no/nordisk-luft-til-luft-varmepumpe/luft-til-luft-varmepumpe-tilbud-vinterkongen-2.html Appreciate any kind of help:)
Moz Bar | | zionray0 -
Time out writing responses to Moz Q&A
This is driving me crazy and making me wish to destroy everything I can reach with my hands. I like to write long curated answers to people questions on here. And evidently there's some sort of timeouts in Moz Q&A software. Because every time I answer to someone I get this fu#@!ng error message... http://imgur.com/ypVQ2hD So I go back, I lost everything and either give up or write one sentence. ypVQ2hD
Moz Bar | | max.favilli0 -
Moz and Google Analytics Trouble?
Is anyone else having trouble connecting their MOZ Pro account to Google Analytics?
Moz Bar | | PhiladelphiaWebsiteSolutions0 -
Moz keyword search took
I don't understand how moz keyword search tool works and how to interpret serp analysis. Is there any tutorial on how to use it?
Moz Bar | | zsyed0