How to Add Google Analytics to WordPress

How to Add Google Analytics to WordPress

You’ve just set up a brand new WordPress site and you’re ready to start bringing customers into your business. Weeks have gone by, and you don’t know whether your customers have visited your site, whether your ad spend has really converted into any sales, or how your customers are navigating through your site. If this is you, then it’s time to learn how to add Google Analytics to WordPress and start tracking how your customers use your site.

Google Analytics is a powerful tool that allows you to see how your customers interact with your site. By looking at the data, you’ll have a better understanding of which marketing channels perform best, or if there are landing pages that need to be improved. Let’s get started and teach you how to add Google Analytics to WordPress!

Setting Up Your Tracking ID

First, head over to analytics.google.com to get started. Create an account if you haven’t already. You’ll need to fill in the information as it’s related to your account. I filled in a sample here:

how-to-add-google-analytics-to-wordpress

Once you have finished, entering in the correct settings, click “Get Tracking ID”.

how-to-add-google-analytics-to-wordpress

When you click the button, you’ll be sent to the next page that has your Tracking ID as well as your javascript code you’ll be inserting into your site. If you have a WordPress site, like ours, you’ll be inserting this code into your header.php file just before to </head> tag.  So what you’ll need to do is copy this code:

how-to-add-google-analytics-to-wordpress

Inserting Your Tracking ID Into Your Website

Head over to your WordPress Admin page so that we can easily insert it into our header.php.

On a side note: If you have a WordPress theme that receives updates periodically, I suggest not using the method below and instead use a third party plugin, like Monster Insights.

To put in your Tracking ID as simply as possible, go to your WordPress Admin page and go to Appearance->Editor.

how-to-add-google-analytics-to-wordpress

When you get to the editor page, select Theme Header on the right sidebar to bring up the header.php editor.

how-to-add-google-analytics-to-wordpress

All you need to do is add the javascript code that you copied from analytics and insert it into the code like this:

how-to-add-google-analytics-to-wordpress

Next, hit Update File and you’re good to go!

Conclusion

You now have learned how to add Google Analytics to WordPress.  Now that you have Google Analytics tracking your site, you can now set filters and goals. This will let you track exactly what information is relevant to your business.
Consult with your developer to make sure that you’re getting the most out of your marketing campaigns. Using Google Analytics, Google Adwords, and Google Tag Manager will greatly help you achieve your goals. If you’d like to discuss how we can increase your site traffic, please contact us for a free consultation.


CONTACT US HERE FOR A FREE CONSULTATION

Fields marked with an * are required

Optimizing Images for Site Performance

Having a fast website is incredibly important to helping you get to the top of the Google search results. Google has even come out and said that a page’s load time is a factor in their search results ranking. However, the number one thing most sites forget to do to achieve a fast loading time for their page is to optimize their images.  Today, we’ll go over the best ways for optimizing images to improve site performance.

 

Make Sure You’re Using the Correct File Extension

 

Using the correct file extension is critical to optimizing images and creating the fastest load time possible. Here are the main file extensions:

 

JPEG(.jpg)

JPEG images are best for optimizing images using photographs that use thousands of different colors. The only time you would use a JPEG format would be for you to use a photographed image. Using any other graphics or flat color schemes would better suit the GIF and PNG formats.

 

GIF(.gif)

 

GIF is a file extension that has been really popular to use for flat graphics over the past few decades. They are best when using under 256 colors and are popular because you can use multiple frames within a single file to create an animated image. However, if you aren’t going for an animated image, they are beginning to lose favor the new PNG file extension.

 

PNG(.png)

 

PNGs have become very popular. This is due to the fact that you can use a wide range of features such as transparency and large fields of color. Since PNGs have this advantage, they have pretty much replaced almost all usage of the GIF when animation is not involved. You can save the PNG format in an 8-bit or a 24-bit format. However, we recommend that you almost always select the 24-bit format. Especially if you are using any transparency in your image.

 

Good Old Fashioned Photoshop

 

Now that you’ve selected the correct file extension that you want to use, it’s now time to save the file in a way that is optimized for the web. Photoshop has a great feature called “Save for Web”. This feature allows you to select optimization options and preview the newly optimized work. This has allowed me to compress a 66KB image down to an 18KB image.

 

optimizing-images-save-for-web

 

WordPress Plugins for Optimizing Images

 

If you don’t want to go the photoshop route, here are a few different plugins that you can use. The most popular of these is the WP Smush plugin. WP Smush creates optimized images for you with the push of a single button. There are also other popular plugins such as EWWW Image Optimizer, CW Image Optimizer, and Hammy that you should check out as well.

 

Conclusion

So there you have it. A few easy steps that allow you to optimize your images for the fastest possible load time. By selecting the appropriate file extension, saving your images in an optimized format, or using a WordPress Plugin, you’ll be helping your site reach the top of the Google SERPs. If you ever have questions or need help optimizing, you can always contact us here.

10 SEO Tips to Help Get Your Site Ranked

Starting a website takes a lot of work. The easiest way for you to get your site noticed is to use organic SEO to get your site ranked on search result pages. This is especially true if your budget is tight and won’t allow you to use targeted ads to drive customers to your site. To help you get started, here are 10 SEO tips to help get your site ranked.

 

Do Your Research

Did you know that according to a recent report that 70% of users only click on the top four Google search results? It’s important that your content ranks at the top of the search engine results. Google gives you a great tool with the Adwords Keyword Planner. This helps you map out which content will be most worthwhile for you to pursue. Plug in the ideas that you have for keywords, and Google will let you know how many people search for that keyword on a regular basis. It’s important to note that the most effective keywords for you to pursue at the beginning of your SEO journey are the long tail keywords. Long tail keywords are keywords that are hyper specific and don’t have much competition in terms of content. Since there isn’t much competition, you’ll have a better chance at ranking at the top the the search results.

 

Find Out What Your Competition is Doing

Finding out what your competition is doing is a good strategy. Doing this will allow you to rank alongside them or even surpass them on the SERPs(Search Engine Results Page). You can do this by going through your competition’s pages and seeing what keywords they use on their content. By doing this, you may also discover new keywords that you didn’t find during your initial research.

 

Optimize Your Headings and Subheadings

Heading tags are the HTML tags the you use to wrap around your headings within your content. It’s important that when you do use your heading tags that you keep a general rule of thumb: use 1 h1 tag for your main heading, 1-2 h2 tags for your subheadings, then use h3 tags as subheadings under your h2 tags. Makes sure that your headings include relevant keywords for your content. Then follow it by  your support content under the keyword for maximum effectiveness.

 

Use Title and Alt Attributes on Your Images

A hidden and often forgot about part for people new to SEO is to use title and alt attributes for your images. By assigning these values to your images, you include another keyword for your post. It will also help your images rank on the Google image search results page, driving more traffic to your site.

 

Use Internal Links Within Your Content

It’s important to include internal links within your posts and site. Internal links are links that connect your pages throughout your site. By using internal links with relevant content, you make it easier for Google spiders to discover the pathways through your website. This will also increasing your rank on search results. Plus, if you have a well performing post, by linking to other content, you automatically increase the page authority of your lesser known content. This will naturally increase their ranking as well.

 

Optimize Permalinks

When starting out, you might not think too much about the individual link of your content. The permalink could contain the date, name of the category, random numbers, etc. In your permalink, rename it so it has your target keyword within the url. For example, if you’re trying to rank for the keyword “Best Wood Tables”, the best permalink would be www.yourwebsite.com/best-wood-tables/.

 

Use Meta Descriptions for Your Content

The meta description is a short excerpts of about 155 characters about what your content is about. This is what will show up in the Google SERPs when your content appears right under your content title. Make sure you write a compelling description of your content within that limit. That will persuade potential readers/customers to visit your site. Google announced in 2009 that meta descriptions don’t factor into the ranking of content, but it is still important to write great copy so people will click to view your site.

 

Use Social Media to Get Backlinks to Your Site

Having websites linking to your content is key to getting your content ranking high on the SERPs. So drive up your ranking by getting people to share your content via social media. The easiest way to do this is to include social sharing buttons on your site so that you give your readers hardly any effort to share your content. Another way of increasing your social shares is to have a great social media strategy that will drive engagement from your readers. You can learn more about how Green Eyed Monster Media can improve your social media strategy by contacting us here. We’ll give your personalized information to help you drive social media engagement and help your business grow.

 

Submit to Search Engines Your XML and Static Sitemaps

Submitting your  XML sitemap to Google Webmasters is a great way of letting search engines know about pages on your site that are ready to be crawled. A sitemap is essentially a list of URLs and their corresponding meta descriptions that make it easy for spiders to get the priority information. Make sure your get your website cached and indexed on Google as fast as possible and go to Google Webmasters to find great resources.

 

Be Consistent

The most Important thing to help your SEO is to produce content regularly. Google search results don’t want to send their readers to sites that don’t get updated regularly. This is because they may have information that is outdated and no longer relevant. By producing content regularly, you not only increase your website’s page authority, but you also create more content, with even more keywords that will help your site get noticed and increase the amount of visitors that regularly come to see what you have to offer.