Many of us do live editing on our wordpress blogs and previewing it over and again just adds wrong data to our Google Analytics account. To prevent this, here is a simple to implement trick, which is proven to help.
Procedure:
Note: Do take backup of the file before you try this.
01. Replace this with your current Google Analytics Code:
<?php if( !is_preview()) { ?>
#Put Google Analytics Code Here#
<?php } ?>This concludes this simple and useful tutorial. Hope you like it.

Pingback: kirtsy.com
Pingback: designfloat.com
Pingback: Disable Google Analytics in Preview Mode in WordPress | Design Newz
Pingback: Tweets that mention Disable Google Analytics in Preview Mode in Wordpress | TutZone -- Topsy.com
Pingback: Disable Google Analytics in Preview Mode in WordPress | WebDevKungfu
Pingback: 200+ Awesome Got To Have Articles for We Designers and Developers | The best Tutorials
Pingback: 200+ Awesome Got To Have Articles for Web Designers and Developers - tripwire magazine
Pingback: 200+ Awesome Got To Have Articles for Web Designers and Developers | The best Tutorials