Every new hosting plan ordered during APR2019 can request free DNSSEC setup ($39 value). Use coupon APR2019 for free DNSSEC ($39 value).
Dominate local SEO with a regional SlickStack cloud server for just $39/month! Order Now
250,000+ sites use our plugins! Become A Member

New Plugin: Google Analytics The Way It Should Be

Jesse Nickles   |  23 Apr, 2017

We’ve decided to jump into the large amount of authors offering Google Analytics plugins with our own version. To put it simply, the vast majority of Google Analytics plugins for WordPress are slowing down websites — something that we’ve noticed time and again over several years of SEO consulting.

While Google released an “async” version of their popular tracking code back in 2009, leading dozens of bloggers to declare “load it in your header, it won’t slow down your site anymore!” the truth is that this is, as usual, a theoretical, rather than practical, conclusion. In reality, anytime a browser or device is loading third party resources so early in the DOM, whether “async” or not, it’s still causing the browser/device to focus on that resource. And since GA evangelists love theory so much, we propose considering the typical low-end smartphone with limited RAM (etc) loading your website over 2G or 3G (still very common in the world) and having to “async” load third party resources at the same time as your page layout and design basics. Saving this debate for another blog post, the key differences between “deferred” and “async” seem to have been lost somewhere on the web in the years since 2009.

As time goes on, GA continues to get more complex, in any case, as more high tech marketers add variables and event tracking pieces all over their source code. This means that going forward it’s going to start making more and more sense to load those variables and trackers first, and the actual GA snippet last (or as late as possible).

The only (seriously, ONLY) time loading GA in the footer could be “bad” is if you have a visitor clicking on links (etc) within perhaps the first 100 milliseconds of the page loading, or some similar time frame (extremely fast). But again this is “theory” because if your page hasn’t finished loading at least the majority of DOM then its highly doubtful that users are browsing around your site until they can actually see your layout.

This is opening up a can of “case study” worms perhaps, and if we have time we will get to that eventually on our blog.

For now however, we will insist that 99% of WordPress sites can safely (and SHOULD, wisely) load Google Analytics at the very bottom of your source code. This not only prevents most potential JS conflicts, but also ensures your visitor’s device and browser are focusing energy where they should — on loading your web page design and functionality, and not on third party javascript.

Currently this plugin is very bare bones, and simply loads GA just before the tag, with a very basic settings page available in WordPress. In the future, we may consider adding one of those fancy API-based traffic graphs in the WP Admin Dashboard although frankly, it’s not a priority. Cheers!

Last modified: 23 Apr, 2017https://www.littlebizzy.com/?p=17687

Results For Local Business, High Traffic, And E-Commerce.

Local Business

"After being hosted on GoDaddy for years, I didn't realize how negatively it was impacting my search traffic. Soon after moving to LittleBizzy, my homepage went from page 3 on Google to #1 world-wide for my target market, and I also reached the top 3 on Google Maps, with no additional SEO work."

Juliette S.

High Traffic

"Before moving to LittleBizzy, whenever our news website was featured on the Drudge Report, it often slowed to a crawl or even froze up during big traffic spikes. Now, that never happens anymore, and we've been able to focus on publishing more articles instead of worrying about our web hosting."

Tony H.

E-Commerce

"The research by Amazon is definitely true, because our slow WooCommerce store was bleeding sales. After LittleBizzy stabilized our performance and moved us closer to our target customers, we saw a measurable improvement in shopping cart checkouts, esp. during holidays... much better!"

Mohammed H.

No contracts, free migration, and free SSL forever. What are you waiting for? Order Hosting Now.

WordPress Gossip, Technical SEO News, And Other Goodies.

Free. Unsubscribe anytime.

Brands That Trust Our Software: