Responsive design and Google analytics mobile tracking codes?
-
Hi all,
We are currently rebuilding a site using responsive design, however i have just had a thought. On another site where we have a mobile site under a sub-directory we utilise mobile tracking codes as we found that this was far more accurate for recording visits.
On a responsive design site evidently all pages, desktop and mobile, will be under the same URL, yet the content will adjust to the screen size of the device. Should we also change the tracking code to be mobile code on the lower resolutions or would the same code be sufficient?
-
Rich,
Because responsive design inherently only uses one html file, what you're describing isn't so simple. Obviously, you only want to include 1 GA tracking code, but you COULD include some logic that fires a different one on page load depending on detected screen width. I think your best bet is to just use the standard GA code in your HTML, then include some JS that detects which of the layouts are displayed on load, and sends it in a custom variable. Alternatively, GA, by default, will capture screen size as a data point, so, as long as your responsiveness is working properly, you can just create segments in GA based on those and view site behavior accordingly.
Mike
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
-
Cost Difference Between Coding Custom Theme or Coding Child Theme
Assuming there is an SEO advantage to coding a Wordpress custom theme (wondering if that assumption is correct) versus modifying a child theme, is there a very significant cost difference between the two choices? Competition in my niche (New York City commercial real estate is keen) and I am dealing with competitors such as www.wework.com, 42floors.com and squarefoot.com with optimized sites built with quality code. In the event that we modify a child theme, I am leaning in any case towards have wireframes and illustrations provided to present to the developer. Should I expect a custom theme to be double the cost, triple assuming the design is provided? I have read that code maintenance on a child theme is less costly as modifications get pushed to the parent theme. How substantial are maintenance costs (time to maintain) for a custom theme? Thanks!!!
Web Design | | Kingalan1
Alan0 -
We added hundreds of pages to our website & restructured the layout to include 3 additional locations within the sub-pages, same brand/domain name. How long could Google take to crawl/index the new pages and rank the keywords used within those pages?
We added hundreds of pages to our website & restructured the layout to include 3 additional locations within the sub-pages, same brand/domain name. The 3 locations old domains were redirected to their sites within our main brand domain. How long could Google take to crawl/index the new pages and rank the keywords used within those pages? And possibly increase our domain authority hopefully? We didn't want our brand spread out over multiple websites/domains on the internet. This also allowed for more content to be written on pages, per each of our locations service's, as well.
Web Design | | BurgSimpson0 -
Wordpress Designer - Have you heard of Jay Hafling?
We are currently browsing around to have a new site built for us as we are not happy with the current one. I checked out webdevstudio and it looks like they build quality sites, but they told me they aren't taking on small projects like mine currently. So browsing around I found this designer from the Ukraine with a nice site and nice portfolio. I am wondering if anyone has worked with him, and maybe to get some opinions on his work? I don't want to make the wrong choice here.. What do you guys think? http://www.jayhafling.com
Web Design | | DemiGR1 -
Any advice for best practice for mobile versions of websites?
Hi Mozzers, I am looking to develop a mobile version of one of my sites and was wondering what was considered best practice for the following: Where to host it: m.domain.com or domain.com/mobile ? Is rel='canonical' enough to avoid mobile version being indexed or should I use "noindex" on mobile version? How to handle tablets? Which screen size sees mobile version? Which sees full site version? Thanks in advance Geoff
Web Design | | SEM-Freak1 -
Google also indexed trailing slash version - PLEASE HELP
Hi Guys, We redesigned the website and somehow our canonical extension decided to add a trailing slash to all URLs. Previously our canonical URLs didn't have a trailing slash. During the redesign we haven't changed the URLs. They remained same but we have now two versions indexed. One with trailing slash one without. I've now fixed the issue and removed the the trailing slash from canonical URLs. Is this the correct way of fixing it? Will our rankings be effected in a negative way? Is there anything else I need to do. The website went live last Tuesday. Thanks
Web Design | | Jvalops0 -
How long does Google take to re-cache a site?
Specifically, I just redesigned my site. I'm reading Danny Dovers book, and learned about checking the cache version of the site to see what google is REALLY seeing . . . . . . which evidently is my old site. Obviously, my sites not going to make any real progress with SEO as long as the site is out of date. It says it last checked the site on 5/5 and I launched the site on 5/9. Obviously, it does not do these things immediately, but anyone have any ideas on how long it should take before google starts to show me some love?
Web Design | | damon12120 -
Old links in Google, new website affecting SEO?
Hi Guys, I have launched my website in october and it has already been indexed by google. Now I'm going to launch my redesign which comes with a new structure, content, links, etc. So the question is, do I have to resubmit my website to google to get rid of old links? Onsite Explorer shows links to my forum which has been spammed with p* stuff which has been already indexed as well. The forum is off now. I want to use SEOmoz to track my new website but I guess this could be a hard thing as old links etc will be shown as well. Is there any tool to let Google know about my changes? Does it affect my SEO in any way? Thank you for your help. Nick
Web Design | | NickITW0 -
Wordpress Design Pricing
Why on earth did you say you could get a quality template designed and coded for a few hundred bucks? Im a professional designer, I expect to make 75 an hour which is actually low. And you think I should be able to design and code a high quality wordpress site in a few hours. You are killing my business and encouraging people to hire low quality developers or take work out of America. Im very offended by your comments. Why dont you try living on 5 bucks an hour !! You just spit in the face of all good designers.
Web Design | | compasslocal0