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 -
How to stop Spam Referral Traffic?
We get referral traffic from Spammers to our Wordpress sites. That traffic comes from different countries: Russia, Ukraine, India, Germany, Pakistan etc. What's the best way to get rid of it? Setting up filters in Google Analytics? Is there something else that I need to do? Is there a plug-in that could help? Does that traffic have a negative impact on my SEO? Does it affect the rankings?
Reporting & Analytics | | Armen-SEO2 -
Google Analytics Event Tracking
Hi Guys, I want to set up a goal in Google analytics for this site http://www.dfrsolicitors.co.uk/contact.php and the contact us form is in php (so there is no thank you html page). I know there is a piece of code "onsubmit" or whatever it is, but I can't find it. I want to be able to track successful submissions. Kind Regards Neil
Reporting & Analytics | | nezona0 -
Organic Traffic Spike
I've been chipping away at the SEO for a client's site for about 6 weeks and a few days ago noticed a huge spike in organic traffic for about a dozen keywords. See attached. Previously traffic was around 20-30 unique new visitors a day. On the 17 it went up to 500+ for 1 day, now it's come back down again. This spike was not for 1 keyword but for about a dozen. I've never seen this before and wondered if anyone had experienced similar. The site is about 3 months old. ebix3rl
Reporting & Analytics | | deployseo0 -
How to better track subdomains in Google Analytics?
Hello Everybody! so I am setting up a website that will have several subdomains, based on the language of the site, for example: site.com; es.site.com; fr.site.com... How should I trace this is GA but having attention that I should be able to see visits as a whole and also if I want I should be able to see visits per subdomain, anything on specific I should do when creating the account? And after creating the account, how to separate that accordingly? 🙂 Thank you all!
Reporting & Analytics | | NelsonF0 -
Why am i still seeing very recent organic kw traffic being reported in Analytics if G is now fully encrypted ?
Why am i still seeing very recent organic kw traffic being reported in Analytics if G is now fully encrypted ? Should it not all be 'Not Provided' now ? When this fully roles out if not already wont it be impossible to distinguish between brand and non brand kw ? Cheers Dan
Reporting & Analytics | | Dan-Lawrence1 -
How to not track mobile redirects in Google Analytics
If a user is on a mobile device and comes to our home page, http://www.darden.virginia.edu/web/Home/ they are redirected to http://m.darden.virginia.edu/web/Home/. We want a way to remove all the redirects from our Google analytics reports. More specifically we do not want to include the the page view of http://www.darden.virginia.edu/web/Home/ in our page view count when the user is on a mobile device. How do we do that?
Reporting & Analytics | | Darden0 -
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