Do you want actionable Internet Marketing advice delivered right to your inbox?
Sign up for our Newsletter

The TechWyse ‘Rise To The Top’ Blog!

Experts from TechWyse and around the world offer how-to's, strategy advice, interviews, infographics and insights to help your SEO and internet marketing campaigns Rise To The Top!

Fixing Direct Visit Issue For Google Analytics When Employing Website Optimizer

Website Analytics September 29th, 2009



Fixing Direct Visit Issue For Google AnalyticsHere’s a piece of advice for those that are A/B testing page variations using Website Optimizer with Google Analytics on the same pages.

During recent testing we saw an abnormal increase in direct visits around the same time as the launch of one of our A/B  tests using. Drilling into the landing page dimension we could see that most of these new direct visits were going to the variant page. This threw a HUGE question up as to the impact of the Website optimizer redirect that allocates visits to the original and variant page.

The redirect causes the source cookie information to be overwritten as a direct visit, (obviously because the GA tracking code has not had a chance to fire on the original page.)

The simple solution is to move the Google Analytics tracking code ABOVE the Google Website Optimizer control script. Problem solved! Obviously this is not best practice as far as GA code placement is concerned but the negative impact on data quality justifies this for the period of time that tests are being carried out.

An extra tip is to add a ‘no robots’, ‘no follow’ tag to the variant page(s). Google does state that indexing should not be affected, but better to be safe than sorry!

Post By Jon Dyer (26 Posts)

Website: →


Jon is the VP of Operations at TechWyse and analyzes everything. This includes your analytics accounts and the difference between Coke and Pepsi. He often shares with us his advanced level knowledge of campaign analysis and Google Analytics.

Post a Comment

Send me SEO tips!




Like us on Facebook

TechWyse Internet Marketing

Fixing Direct Visit Issue For Google Analytics When Employing Website Optimizer

Read time: 1 minutes