Got it, very helpful - thanks so much!
_Cindy
Welcome to the Q&A Forum
Browse the forum for helpful insights and fresh discussions about all things SEO.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Job Title: Web Designer
Company: CCB Creative
Favorite Thing about SEO
on-page optimization, content strategy, infographics
Got it, very helpful - thanks so much!
_Cindy
OK, thank you.
If I understand correctly, the tracking code for a single site did the work of tracking visitors, and the 301 redirect didn't change the tracking results -- even though the "301 redirected address" was at one time different from the "GA default url."
If I may ask, what is a hostname injection? And if possible please explain a use case example where hostname injection is used.
_Cindy
Everything is consistent now - 301 redirect to www, default url in GA set to www.
Tracking code has remained the same within cms because the GA account's url was changed to go to www.
It is a matter of too many chefs in kitchen and no one had control of entire picture at one point.
My question really is... when there was inconsistency in web address from 301 redirect (www-address) and the GA default url (non-www), why was GA still receiving traffic?
And how much can one rely on older metrics when this inconsistency was in place?
_Cindy
If someone has set:
the default url in Google Analytics to a non-www address (http://mysite.com)
then placed the UA tracking script from that GA account within the CMS framework of the website...
... and then set the permanent 301 redirect in the htaccess file to redirect to the www address (http://www.mysite.com).
How less accurrate will my GA analytics measurements be considering the default url within GA is non-www and the permanent 301 redirect in htacess is to the www-address?
Anyone know how reliable GA reports are until the default url in GA analytics is changed to match what is the redirected url in htaccess file?
_Cindy
I bought the MozCon Video Bundle - how long will I be able to access it online?
And how do I access it online - keep clicking the promo icon?
graphic designer who helped employers build websites, mostly with notepad; currently working exclusively with websites, using OpenSource CMS frameworks, Inbound Marketing Strategies
Looks like your connection to Moz was lost, please wait while we try to reconnect.