Archive for eugen oprea

How to Speed Up Your WordPress Site

social media how toIs your blog slow?

Do you want to improve the experience for readers?

In this world of instant gratification, speed of content delivery really can impact your business.

Keep reading to discover ways to increase the speed of your website.

Why Website Speed Is Important

First impressions matter.

One way to see how fast your website is loading is to use Pingdom.

speed test

With Pingdom, you identify what areas of a web page are fast, slow or too big, what best practices you're not following and so on.

When new visitors come to your site, the first thing they notice is the load speed and then the design.

Even if you have a fantastic website, if your page doesn’t load fast enough, visitors might leave before they see your website design.

In addition to this, Google strives to deliver the best search results, so they put a great value on website loading speeds.

This means that if your site does not load fast enough, you may lose ranking in Google search results despite all of your other online marketing efforts. And this can easily lead to less traffic, which then translates to lost subscribers and customers for your business.

Here are some simple steps to help you improve the speed of your WordPress site.

Start With the Basics

Here’s a short summary of the basics you need to know about how to increase your WordPress site speed.

  • Keep the number of WordPress plugins you use to a minimum. A high number of plugins adds an overhead to your blog and slows your website speed. Carefully choose your plugins and only use the ones you really need for your website.

    wordpress plugins

    Remove any plugins that you don't use or that you can easily replace with a code snippet.

  • Delete spam comments. Another practice that slows the speed of your website is keeping thousands of spam comments in your database. Remember to regularly delete spam comments from your database.

    spam comments

    Remove all spam comments when they get to a 3- to 4-figure number. All you have to do is just to click on the Empty Spam button.

  • Delete post revisions. Just like spam comments, copies of old post revisions make your database heavier and slow down the speed of your website. Be sure to delete your old post revisions. Install the Better Delete Revision plugin to remove the old revisions from your posts and pages.

    delete post revisions

    Remove the old revisions from your posts and pages.

Get a Proper Hosting Provider

WordPress is just like a car; it can run faster if you give it proper fuel.

pumping gas

Choosing the proper "fuel" for your website will make a difference for your visitors and search engines. Image source: iStockPhoto.

In order to work, WordPress needs specific resources, such as memory or central processing unit (CPU) on the server where it’s hosted.

And sometimes those resources are not enough for it to function properly. This is often the case on shared hosting.

So if you started your website using a shared account on a company like HostGator, Bluehost or Dreamhost, consider upgrading your hosting account as soon as you can afford it.

You can get a Virtual Private Server (VPS) or dedicated server, but what might work best is managed WordPress hosting.

You can set up and optimize your own server dedicated for your WordPress sites, like I do, but this takes time and a certain level of expertise.

Here are some providers you can look into:

Each of these has different benefits, so check them to see which one resonates more with your business model and budget.

Choose Your Theme Wisely

Once you’ve looked into plugins and hosting providers, the next step is to look at the theme you use for your WordPress site.

First, I would recommend you choose not just a simple theme, but a framework for additional benefits to your blog, such as:

  • Improved speed
  • Built-in security enhancements
  • Basic search engine optimization
  • Beautiful designs

When you choose a theme/framework, you should look at how often the framework is updated, how seriously they take security or what kinds of designs they can offer out of the box.

Additionally, one really important aspect is which SEO features are included with your theme. To strengthen your SEO, it’s important to easily be able to add a custom title or custom meta description to your articles.

Frameworks to consider are: Genesis Framework from StudioPress, Thesis, AppThemes, WooThemes or Headway Themes.

Optimize Your Database

In the basics mentioned above, you learned to delete your spam comments and post revisions. That is because they add a high overload on the database.

The database is the place where everything about your WordPress site is stored and it’s different from the physical files, uploads, themes or plugins on the server. WordPress uses the database to store posts, pages, comments, settings and plugin information. Every time a page is loaded, it reads the database. If your database is bloated, the information can take longer to be found and displayed.

This is the main reason why you need to optimize your database regularly, especially if you have a larger website.

To do this, you can install the WP-DBManager plugin. This plugin helps you to back up, restore, repair and optimize your database.

wordpress database

Use the WP-DBManager to back up, optimize and repair your WordPress database.

Once you install it, you’ll see a Database item on the left menu.

First, back up the database from the Backup DB submenu.

backup wordpress database

Once the Checking Database Status is completed, just press the Backup button to back up your WordPress database.

Next, repair the database from the Repair DB submenu.

repair wordpress database

To repair your database, just select all of your tables and click the Repair button.

Finally, it’s time to optimize the database from the Optimize DB submenu.

optimize wordpress database

To optimize your database, just select all of your tables and click the Optimize button.

As you can see, this is easy to do.

And if you want to avoid doing this manually, you can also schedule these tasks from the DB Options submenu.

wordpress database options

Schedule the backup, optimization and repair of your database.

I personally back up the database every day, optimize it every 3 days and repair it once a week. You can follow this pattern too. But if you blog multiple times a day, I would recommend you schedule these more often.

Optimize Images

It’s also important to know what types of images you can use and when.

For example, if you have simple images such as illustrations or artwork, it’s recommended to use an 8-bit PNG. This makes your images smaller, which makes them faster to load on your website.

For simple images, illustrations or artwork, use an 8-bit PNG format.

But if you have complex images with lots of colors, then JPG or 24-bit PNG is recommended. [Editor's note: 24-bit PNG files are significantly larger than JPG files but are more visually stunning]

cruise side ad

If you need to save complex images that contain lots of colors, save them as JPG or 24-bit PNG.

You can use a simple image editor to save images in these formats, such as Paint.NET or more complex editors like GIMP or Photoshop.

By using the proper format, you’ll reduce the size of your images. And when they’re downloaded by your visitors’ browsers, this operation will be much faster.

This will increase your website load speed.

Use a Caching Plugin

Caching is a process that’s essentially like taking a picture of your content and providing it to your visitors without requesting it from the database each time.

WordPress is an entire mechanism and every time you load a page, lots of things happen on the back end.

But when you use a caching plugin, this process gets simplified: your content is served from the cache without being generated over and over again.

The best plugin you can use to cache your content is W3 Total Cache. It’s effective and simple to use.

w3 total cache page caching

Install W3 Total Cache and activate Page Cache, Minify and Browser cache. You should also activate the preview mode and preview your site before activating your settings.

There are some advanced techniques you can use here, but to start with, just install and activate it and leave the default options on.

Deliver Your Content Through a Content Delivery Network

A content delivery network (CDN) helps to deliver your content, images and also CSS & JavaScript files from different locations across the globe.

Your content is served from the location that is closest to your visitors.  So, if your visitor is from Europe, for example, then your content will come from a server in Europe.

A CDN saves your bandwidth and visitors will experience faster loading speed.

You can get a free CDN from your hosting provider or you can set one up yourself using Amazon CloudFront and the W3 Total Cache plugin mentioned above.  This will require more technical skills.

Your Turn

Be sure to follow these steps to improve the loading speed of your WordPress website and improve the experience people have when visiting your site.

What do you think? Share your own optimization techniques so we can also test them to see how they work. I’d love to hear your questions in the comments section below.

Image from iStockPhoto.

How to Track Social Media Traffic With Google Analytics

social media how toYou have a website and you are building traffic to it, but what do you know about your visitors?

Do you know where they come from, how engaged they are with your website or if they have converted as a reader, subscriber or customer?

You can see all of these insights for free using Google Analytics.

Why Google Analytics?

Google Analytics allows you to see where your visitors come from and if they engage with your content or leave immediately. Additionally, you can set up goals that match your business goals and measure if visitors are meeting those goals.

With Google Analytics, you can get valuable insights about your visitors and in this article I am going to show you how to track social media traffic.

This will help you identify the social media sites that send the most visitors back to your website to see which one needs more attention.

You will also discover how you can learn more about the visitors who come to your site from Twitter, Facebook, Google+ or other social media sites.

Additionally, you will learn how to use a feature called Advanced Segments to segment your social media traffic and see how those visitors behave on your site.

Getting Started With Google Analytics

Before we dive into this, I want to make sure that you use the latest version of Google Analytics.

To do this, just login into your Google Analytics  account and click the New Version link from the top left section of your screen.

new version google analytics

Click the New Version link to switch to the latest version of Google Analytics.

Once you do that, you are all set up and ready to follow the rest of this article.

Identify Your Main Traffic Sources

First you will need to discover what social media sites send the most traffic to your website.

To do that, go to the Traffic Sources section, select Sources and All Traffic.

Here you will be able to see a list with all of the websites that send traffic back to your site. Right now, you will need to identify which are social media websites and keep the first three in mind.

google analytics traffic

Identify the main 3 social media sites that send you traffic.

From this example you can see that Twitter (t.co is Twitter’s shortened URL), Hacker News and Facebook are the main social media sites that drive traffic.

For you, the most important may be Google+ or StumbleUpon or any other site where you have an active profile.

Create Advanced Segments

Once you have identified your main social media traffic sources, you can create Advanced Segments for those websites and segment the traffic to individually analyze your visitors.

You can also set up multiple Advanced Segments and compare them to see the difference among them.

To make this easier to understand, I will show you how you can set up Advanced Segments for Twitter, Facebook and Google+ to compare their traffic and for multiple other social media sites to better analyze traffic.

Twitter Traffic Segment

You can create an Advanced Segment for Twitter to see how it compares with Facebook and Google+.

To do this, simply click on Advanced Segments from any Google Analytics report and click + New Custom Segment.

create advanced segments

Create Advanced Segments to individually analyze your visitors by traffic source.

Then add a name for your segment and start to include as sources the following containing terms that might send traffic to your website:

  • twitter.com
  • t.co
  • hootsuite
  • tweetdeck
  • bit.ly

As you can see, there are multiple filters that should be added using an OR statement because different Twitter clients might send traffic that will not get tagged as being from twitter.com or t.co.

While adding these filters, you will see that if you have traffic that matches, Google Analytics will insert the filters using an autocomplete function.

This way you can be sure that all the filters you apply actually match visits.

twitter segment

Create a Twitter traffic segment to see how the inbound traffic from Twitter compares with other social media sites.

Once you add all your filters, press the Test Segment button to see if everything is set up correctly. If so, save your segment.

Facebook Traffic Segment

Next on the list is the Facebook segment, which can be created exactly as you did for Twitter—just change the filters to:

  • facebook.com
  • m.facebook.com
facebook segment

Create a Facebook traffic segment and include as a source both facebook.com and the mobile version m.facebook.com.

From my analysis, Facebook sends traffic as facebook.com and m.facebook.com if the traffic comes from mobile devices. To make sure that your filter will match, you can simply use “facebook.”

Google+ Traffic

The Google+ segment is similar to Twitter and Facebook, but simpler. All you have to do is just filter:

  • plus.url.google.com
google plus segment

Create a Google+ traffic segment to analyze only the traffic that comes from Google+.

Google+ sends all traffic from plus.url.google.com. You may also see traffic from google.com, but do not include it, because that is something different.

Social Media Traffic

Now that you know how to create individual segments, you can create a more comprehensive segment that analyzes traffic from more than one social media outlet.

You can use this type of segment to include the traffic from StumbleUpon, Digg, Delicious, LinkedIn and any other social media site.

As an example, below are some of the sites you can include in this segment using the OR statement:

  • twitter.com
  • t.co
  • hootsuite
  • tweetdeck
  • bit.ly
  • facebook.com
  • m.facebook.com
  • plus.url.google.com
  • linkedin
  • youtube
  • reddit
  • digg
  • delicious
  • stumbleupon
  • ycombinator
  • flickr
  • myspace
  • popurls

A simpler version of this segment would be to select as a condition Matching RegExp, which will use a regular expression to detect the traffic that matches your condition.

The advantage of this will be the fact that you will not need to type in 10-20 conditions for this segment, but just one.

To create this segment, select Matching RegExp as condition and then type in brackets “()” the social media sites that send traffic to you, separated by a vertical bar “|”, just like the code below:

(twitter|t.co|hootsuite|tweetdeck|bit.ly|facebook|plus.url.google|linkedin|youtube| reddit|digg|delicious|stumbleupon|ycombinator|flickr|myspace|popurls)

You will need to make sure that there are no spaces in this code.

social media segment

Use a Regular Expression to create only one condition which includes all the social media sites from where you might get traffic.

You can also include other sites that send traffic to you.

Understanding Social Media Traffic

Now you have four powerful segments that will help you get more insights about your visitors.

You can use the first three to see how they compare to each other and if there are any big differences among them.

You can use the fourth to see how visitors who come from social media sites behave on your own site and how they convert.

We will cover more about this in future articles, but to start you should have a look at the Audience reports to determine their behavior, how engaged they are with your site (how much time they spend reading your content), how frequently they come to your site or the ratio of new visitors to returning visitors.

The Content section is the one that you should check next to see the pages your social media peers visit on your site, your site speed for their connection or what they search for on your website.

For example, you can see from the screenshot below that the visitors coming from Twitter (even if they have a higher number of visits) are less engaged with the content of the website, because the majority spend less than 10 seconds on the website.

social engagement

Use Advanced Segments to identify which social media sites send you valuable visitors.

You can use the above segment to compare the traffic from multiple social media outlets and see where you should invest more time, which one sends you more engaged visitors, visitors that convert and much more.

With the more comprehensive segment or if you apply only one segment, you can actually filter the traffic and see all of the Google Analytics reports for that specific segment.

This helps you identify visitors’ behavior and engagement for that specific segment of traffic.

Over to You

These are just a couple of examples, but I would love to see what other experiments you’ve done.

What do you think? Which of these examples have you successfully implemented? Plus, what other tutorials about Google Analytics would you like to see on Social Media Examiner? Leave your questions and comments in the box below.