Mobile redirect causing traffic drop? Can I move analytics code to capture them as visitors before redirecting them?
-
Yesterday I implemented a mobile redirect as I don't have a mobile version of my site. As a result I've seen a drop in traffic which makes sense as my redirect script is at the top of the page. If I were to move the redirect script below the analytics code would that allow me to still track mobile users? Would this affect my bounce rate though?
-
Yes, the "drop" in traffic (or drop in reported traffic) is because the analytics code doesn't have time to kick in before the redirect script takes over.
If you were to move the refresh script to the bottom of the code and the analytics to the top, the likelihood of reversing this goes up. We had a similar problem with a client site in that they had a very heavy piece of conversion optimisation software running at the top of the code and our tracking code at the bottom. Users clicking from search to the home page usually knew where they wanted to go quite quickly, and would click away before our tracking code had loaded. Client was desperate to know why our SEO traffic had gone through the floor. It had not. We had them reverse the analytics and CRO codes and our traffic "came back".
JS is executed in the order it's included in the code, so moving it should work. Should being the key word - I am not 100% on this.
I am not sure how to place a delay with JS so hopefully someone else can chime in on that one. Meta refreshes allow a short time delay - does anyone know what the correct way to do this for solely mobile traffic would be? Acknowledging that meta refreshes are not recommended for SEO, but they are a popular way of defining a short delay in redirecting a user.
-
The mobile site is not operated by me unfortunately.
-
Why you not add the analytics code to the mobile site too? The actual market of mobile phones runs JS without problems.
-
Uh, hard to say as you need to do it in the script you're including ;-). Can you send me the URL of the JS (or via PM, whatever you prefer)?
-
Thanks for your reply. How would I add a delay to this code?
-
Hi Sam,
If you're doing the redirect with a JavaScript solution then the answer would be yes. Put you would need a delay of 1-2 seconds to make sure the GA tracking code is initialized.
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
-
How to filter out traffic from subdomain using regex?
Hi There, We have a test server that lives on a subdomain which we'd like to filter out in Google Analytics. We're using the hostname filter but are having trouble understanding the regex needed, we're using this as the filter pattern: .domain.com. Will that work? The profile is new so we can't test the pattern. Any pointers in the right direction would be much appreciated. Cheers Ben
Reporting & Analytics | | cmscss0 -
Traffic Drop Observations: Google UI, Mobilegeddon
Our traffic has dropped 25% in the last 3 weeks while maintaining our keyword rankings. At first, we thought it was due to the simultaneous change in Google UI where they removed the separators between ads and organic results. However, now, we have also noticed that our user devices have gone from ~ 50% desktop/50% mobile to 20% desktop/80% mobile. Just food for thought ...
Reporting & Analytics | | Humanovation0 -
Changing UX for different types of visitors
If we want to change the UX for different types of visitors (ex: direct, google PPC, google organic, bing organic, etc.) what is the best way to do it? With Universal Analytics, where can we find the source and medium?
Reporting & Analytics | | AMHC0 -
Can anyone diagnose drop in organic traffic? (Screenshot attached)
I have an unexplained drop in google traffic on the 9th July. There are no messages in webmaster tools and no onsite or link building had taken place. In fact there were no changes at all. The only possible thing I can think of is that for some time I have had a problem where the bounce rate for my site was 95% plus in analytics. That data is wrong as the website is converting 1in 10 visitors and for them to convert the bounce rate would 90% (If EVERY other visitor bounced) as they have to visit several pages to do so. Any help appreciated! b457MPe.png
Reporting & Analytics | | SamCUK0 -
Google Analytics
Is there any way around being able to set up 20 goals in Analytics? What if one of my clients want to set up 10 pages with separate actions to track on each page. Will then each actions count as a separate goal? If this is the case, how could I work around creating more than 20 goals? Would I have to look into hiring/buying a third party or separate software? Your help is greatly appreciated.
Reporting & Analytics | | flcity150 -
Google Analytics - In-Page Analytics
I had a strange thought waking up this morning, and was curious to hear other people's opinions on it. In Google Analytics, under Content > In-Page Analytics, Google shows what links on your site pages get clicked and how many times plus other metrics. Do you think they use that data for ranking back links so-to-speak? What I mean is, say I had a back link to my site on example.com, and example.com had google analytics installed. Google can see through google analytics whether my link has been clicked on. Say that my link gets no clicks, do you think that Google would use that metric against my site deeming it "not popular" or "not a good resource", even if example.com was a very popular site? And it could work the other way. Say my link got thousands of clicks on example.com, do you think that Google might use that to promote my site? I couldn't find any other discussion on this anywhere, so am not sure if people have already thought about this.
Reporting & Analytics | | THB0 -
Google Analytics - Referral Traffic Question
How Google Analytics determine that some particular web site referred traffic if there is no back link on that site?
Reporting & Analytics | | DiamondJewelryEmpire1 -
Google analtyics code placement
I saw that Google suggests the analytics code be in the , will this effect the page load if it is in here? Also, is it a problem to have it in the body?
Reporting & Analytics | | Gordian0