Working with Google Analytics - Teach Yourself VISUALLY Search Engine Optimization (2013)

Teach Yourself VISUALLY Search Engine Optimization (2013)

Chapter 8. Working with Google Analytics

Google Analytics is one of the most important tools in the search engine optimization (SEO) world; it helps you obtain information about website traffic, page views, where users click when they visit a website, and where visitors live. Google Analytics enables you to analyze a website to learn more about it. You can then apply this information to optimize your website.

9781118470664-co0801.eps

Create a Google Analytics Account

Install Google Analytics Code

Create a New Analytics Account

Add a New Property Website

View Website Analytics

Add Multiple Users

View Real-Time Statistics

Exclude Traffic from a Specific IP

Set Conversion Goal

Find Website Keywords

Create a Google Analytics Account

The Google account gives you access to different Google services, including Google Analytics. Each website or group of websites needs to have a Google Analytics account, which you create when you sign up. You can add one or more websites to track and analyze this account. You can also create a separate Analytics account for each website, which is known as a Property. For example, you can create a Google Analytics account for a specific website and its related sub-domains for better management. You can manage Analytics accounts and Properties from the Adminpage.

Create a Google Analytics Account

9781118470664-fg0801.eps

001Type www.google.com/analytics in your web browser and press ent.eps.

002Click Create an account.

9781118470664-fg0802.eps

The Google Analytics sign up page appears.

003Click Sign up to create a new Analytics account.

Note: If you are signing in with an existing account, you will be transferred to the Google Analytics home page.

9781118470664-fg0803.eps

The Account Administration page appears.

004Click Web Site.

005Type the website name to set up the name of the initial property in the account.

006Type the website URL.

007Click the Industry Category pop-up menu and select a website niche.

008Click the Reporting Time Zone pop-up menus and select a country of origin and a time zone.

009Scroll down the page.

9781118470664-fg0804.eps

The rest of the form fields appear.

010Type the account name in the Account Name field.

011Click the Data Sharing Settings option (9781118470664-ma004 changes to 9781118470664-ma005).

012Click Get Tracking ID.

The Google Analytics Terms of Service page appears.

013Click I accept to receive a Tracking ID.

TIP

Where can I find the created accounts?

After you create the site accounts, the accounts appear on the Google Analytics home page. On this page, you can navigate through the site accounts and access any of the listed sites. You can also set specific site accounts as favorites so you can easily reach them later. You can show the account Metrics that display the statistics of each website. You can also search for sites and accounts using the Search field. This feature is very useful if you are reviewing multiple sites.

Install Google Analytics Code

Google Analytics tracking code is a snippet of code that Google assigns to each property or website to track its traffic and visitor information, such as the links visitors click, their web browser versions, their countries, and more. You can get the tracking code by clicking the Get Tracking ID button when you create a new account or property, or you can get it by accessing each account property’s information page in Analytics Admin. Then, you can copy the code and paste it into your HTML page before the </head> closing tag.

Install Google Analytics Code

9781118470664-fg0805.eps

001Click Sign in on Google Analytics.

9781118470664-fg0806.eps

The Google Analytics Account Home page appears.

002Click Admin.

9781118470664-fg0807.eps

The Account Administration page appears.

003Click the account; for example, Online Business.

9781118470664-fg0808.eps

The All Accounts page appears.

004Click the property name; for example, the Online Business Monster property.

TIP

Where should I add the tracking code?

The Google Analytics tracking code is used to track the pages on which it is installed. For example, if you install the code on index.html, the code will track the traffic and visitors on this specific page only. Thus, you need to add the tracking code to each HTML page in your website. In some website structures, the website header is added to a separate file that loads in index.html when you visit the website via your web browser. In this case, you can add the code only in the header file and it will track the traffic from all the website pages. Understanding the structure of your website helps you to avoid multiple insertions or duplicate code on the website.

The Google Analytics code provides a trusted way to track your website traffic and visitor information. This information is essential for the SEO process because it allows you to monitor website traffic, the high SERP (search engine results page) content, and other information. You can use this information to refine the SEO process for your website and track the progress of each optimization task to determine the best SEO techniques for your website. For example, you can use the Analytics data to figure out the SERP keywords that bring the most traffic to your website and other keywords that you can optimize to get better SERP rankings.

9781118470664-fg0809.eps

The Accounts Properties page appears

005Click the Tracking Info tab.

9781118470664-fg0810.eps

The Tracking tab is active.

006Scroll down to the tracking code section.

007Click and drag to select and then press cmd.eps+c.eps (ctrl.eps+c.eps) to copy the tracking code.

9781118470664-fg0811.eps

008In the HTML document, position the mouse pointer before the </head> closing tag.

009Press ent.eps.

9781118470664-fg0812.eps

010Press cmd.eps+v.eps (ctrl.eps+v.eps) to paste the tracking code.

011Press cmd.eps+s.eps (ctrl.eps+s.eps) to save the document.

After the code is inserted, it takes around few days to display the website statistics.

TIPS

Why do the code results not appear right away?

When you first install the Analytics code, it takes a couple of days before you will receive a complete report for the website data. When the word “Verified” appears next to the website in the Analytics accounts page, it means the code has been installed correctly.

How do I install the code in PHP sites?

For websites that use PHP as a coding language, Analytics code is installed in a different way. In this case, you want to create a file on the server with the name analyticstracking.php. This file should include the Analytics tracking code, which you place after the opening of the <body> tag using the code <?php include_once(“analyticstracking.php”) ?>.

Create a New Analytics Account

Google Analytics allows you to create multiple accounts on your dashboard and each account can include one or more properties. You can use this option to organize your Analytics dashboard, especially when you have large list of websites to track. For example, you can create an account for a specific website and its sub-domains. The sub-domains are websites hosted under the main website server and domain name. For example, you can have the website www.sitename.com with the sub-domains http://faq.sitename.com and http://help.sitename.com. Arranging the websites help you to get better tracking for the sites and share it with your teamwork.

Create a New Analytics Account

9781118470664-fg0813.eps

001Click Admin on the Google Analytics home page.

9781118470664-fg0814.eps

The Accounts Administration page appears.

002Click New Account.

9781118470664-fg0815.eps

The New Account page appears.

003Click Web Site.

004Type the website name to set up the name of the initial property in the account.

005Type the website URL.

006Click the Industry Category pop-up menu and select a website niche; for example, Healthcare.

9781118470664-fg0816.eps

007Scroll down the page.

008Click the Reporting Time Zone pop-up menus and select a country or origin and a time zone.

009Type the account name in the Account Name field.

010Click Get Tracking ID.

The Google Analytics Terms of Service page appears.

011Click I accept to receive a Tracking ID.

TIP

How many site accounts can I create in Google Analytics?

Google Analytics allows you to use up to 50 site accounts to manage your websites. In each account, you can add multiple properties. In some cases, you may need to create a separate Google Analytics account for a specific website. For example, if you sell the website, the buyer will lose all the old analytics details when he adds the website to his own Google Analytics account. Therefore, in order for the buyer to preserve the old analytics, you should give the buyer your whole Google Analytics account. In this case, it is advisable to have a separate Google Analytics account for this specific website.

Add a New Property Website

Under each site account in Google Analytics, you can add one or more websites, which are known as Properties. These Properties appear under the main site account in the Admin page. Each website has its own tracking code, which you will need to install in the website in order to track the website statistics and analyze them in Google Analytics. You can use this Accounts and Properties structure to organize your sites and their related domains and sub-domains. Also, you can use it to organize related websites under the main site account.

Add a New Property Website

9781118470664-fg0817.eps

001Click Admin on the Google Analytics home page.

9781118470664-fg0818.eps

The Account Administration page appears.

002Click an account; for example, Online Business.

9781118470664-fg0819.eps

The Account page appears.

003Click + New Property (web or app).

9781118470664-fg0820.eps

The new property page appears.

004Click Web Site.

005Type the website name to set up the name of the initial property in the account.

006Type the website URL.

007Click the Industry Category pop-up menu and select a website niche.

008Click the Reporting Time Zone pop-up menus and select a country or origin and a time zone.

009Click Get Tracking ID.

After receiving the tracking code, you can install it on your website.

TIP

Can I track mobile application statistics?

Yes, you can create a tracking code for mobile application by clicking App from the new properties page. You can use the tracking code to get statistic information about your Android or iOS application and display it in your Google Analytics account. You can use this code with multiple versions of the application, and you can also install it to multiple applications.

View Website Analytics

Standard Reporting appears on the Analytics page. It includes information on Unique Visitors, counted once during their visits, and New Visitors, visiting for the first time.

Page views indicates how many pages visitors view. Page/Visit shows the number of pages each user visits. Avg. Visit Duration shows how long users browse the website, and Bounce Rate indicates the percentage of users visiting the page and then leaving without viewing other pages.

View Website Analytics

9781118470664-fg0821.eps

001Click All Web Site Data or your own profile name from the Analytics Account Home page.

9781118470664-fg0822.eps

The Standard Reporting page appears.

002Click the Data Range down arrow (9781118470664-ma002).

9781118470664-fg0823.eps

The Data Range timeline appears.

003Click a starting date to set the start of the data range.

004Click an ending date to set the end date for data range.

005Click Apply.

9781118470664-fg0824.eps

The website statistics for the period chosen appear.

TIPS

What is the different between Standard and Custom Reporting?

The Standard Reporting tab displays the default information for visits, unique visitors, and page views. This view appears when you access the website analytics. The Custom Reporting tab enables you to create a new customized report with specific information. You can create multiple custom reports for different purposes and web analytics.

How can I share Google Analytics reports?

Google Analytics lets you share reports by e-mail or download them in various formats. You can click Export to save the report on your computer in CSV, TSV, TSV for Excel, and PDF formats. From the Standard Reports tab, you can click Email from the menu bar to send a report to e-mail recipients.

Add Multiple Users

Google Analytics allows you to add multiple users to specific accounts and allow them to view Account Properties statistics. Newly created users can be the User or Administrator. You can set the specific website Profile to display for the User. The Profile shows property data in a custom way; for example, it can show only the traffic from Google organic search. The Administrator account can view all the available properties for the account. The multiple users feature is very useful when you are part of a team that would like to share website statistics.

Add Multiple Users

9781118470664-fg0825.eps

001Click an account on the Account Administration page.

9781118470664-fg0826.eps

The Account page appears.

002Click the Users tab.

9781118470664-fg0827.eps

The Users page appears.

003Click the + New User tab.

9781118470664-fg0828.eps

The new user form appears.

004Type the user’s e-mail address.

005Click the User role option (9781118470664-ma006 changes to 9781118470664-ma007).

006Click the Notify this user by email check box (9781118470664-ma004 changes to 9781118470664-ma005).

007Click your profile name.

008Click Add.

009Click Add User.

The user will receive a notification and then be able to see the website reports.

TIPS

Under what conditions do I choose the User or the Administrator role?

The User role has very limited capabilities in comparison with the Administrator role. The User role cannot edit the Analytics settings or add new users. The Administrator role has similar privileges as the owner. The Administrator can access all reports, modify settings, and add new users.

How can I create or edit a website profile?

On the Accounts page, click an account. Select the current profile to edit, or click +New Profile to create a new profile that will take you to the profile set up. In the new profile, you can add users, filters, custom alerts, scheduled e-mails, shortcuts, and set Goals.

View Real-Time Statistics

Real-time statistics show you live updates for website analytics. When you click the Property analytics, you get gathered information and statistics about the website. By clicking the Real-Time option on the Analytics web page, you can view live information about the website’s current number of visitors, the locations of those visitors, the traffic sources these visitors come use, and the currently visited content. You can also click the Overview link to view a summary of all live data.

View Real-Time Statistics

9781118470664-fg0829.eps

001Click All Web Site Data or your own profile name on the Google Analytics Account Home page.

9781118470664-fg0830.eps

The Website Analytics page appears.

002Click Real-Time under Standard Reports.

9781118470664-fg0831.eps

The Real-Time submenu expands.

003Click Overview.

9781118470664-fg0832.eps

A The Real-Time Overview statistics expand, showing live information about the website visitors.

TIPS

Why are the Real-Time statistics important?

In the SEO process, you want live analytics about the website. For example, you may need to know the time when the website receives the most traffic to determine the best time to publish website content. The live statistics also give you an idea of the type of content that visitors visit through the day.

What information can I obtain from the Real-Time statistics?

From the Real-Time overview, you can check the current traffic for the website and number of page views. You can check the origin of the website traffic and location of visitors. You can also learn about the search keywords that display the website on search engine results pages.

Exclude Traffic from a Specific IP

Every Google Analytics profile allows you to add Filters, which allow you to exclude specific data from appearing in the profile. For example, you can use them to hide traffic information from your IP. The Internet Protocol (IP) address is a set of numbers assigned to each website. Usually, you need to check the website frequently while testing and developing content from your own browser setting. The analytics information about your own website visits is not important and may be misleading. Using Filters to exclude your IP data can help you to get more accurate traffic data.

Exclude Traffic from a Specific IP

9781118470664-fg0833.eps

001Click the account name in the Account Admin page.

9781118470664-fg0834.eps

The account admin page appears.

002Click Filters.

9781118470664-fg0835.eps

The Filters page appears.

003Click +New Filter.

9781118470664-fg0836.eps

The New Filter page appears.

004Type your filter name.

005Click the Predefined filter option (9781118470664-ma006 changes to 9781118470664-ma007).

006Click the Filter type pop-up menu and select Exclude.

007Click the pop-up menu and select traffic from the IP addresses.

008Click the pop-up menu and select that are equal to.

009Type the IP address in the fields.

010Click All Web Site Data.

011Click Add.

012Click Save.

The filter is added and will apply to all the web site data.

TIPS

What type of filter can I create?

The Filters options allow you to create filters based on different criteria. Each criterion can exclude or include traffic from specific sources. For example, you can choose to exclude traffic from a specific ISP domain, IP address, subdirectory of a specific website, and hostname. You can also apply multiple filters to the same profile and apply different criteria for each filter.

Can I apply the same filter for more than one profile?

Yes, you can create a filter and apply it to multiple profiles in the same account. You can do this by clicking the Filters tab in the Analytics account. This option is helpful for creating global filters that you can use with different profiles.

Set a Conversion Goal

Google Analytics’ Conversion Goals enable you to measure if you are achieving your objectives. It tracks actions giving you ideas about your progress in achieving a specific result. This goal can be the time users spend on your website or the number of page views. You set goals at the profile level and are limited to four sets of goals. Each set is limited to five goals, which means that each profile has a maximum of 20 goals. The four types of goals are URL Destination, Visit Duration, Page/View, and Event.

Set a Conversion Goal

9781118470664-fg0837.eps

001Click Goals or your own profile name on the All Web Site Data page.

9781118470664-fg0838.eps

The Goals section appears.

002Click +Goal under the Goals (set 1).

9781118470664-fg0839.eps

The Goal setting appears.

003Type your goal in the Goal Name field.

004Click the Visit Duration option under the Goal Type section (9781118470664-ma006 changes to 9781118470664-ma007).

9781118470664-fg0840.eps

The Visit Duration setting appears.

005Click the Condition pop-up menu and select Greater than.

006Type the hours and/or minutes in the Hours and Minutes fields; for example, type 10 in the Minutes field.

007Click Save.

The goal appears in the Goals tab as one of the goals of your account and also on the Analytics home page under the Conversions section.

TIP

What is a URL Destination goal?

The URL Destination goal tracks the traffic for a specific URL. You can choose from three match types. The Head Match is a good choice for shopping pages that have parameters in the end of the URL. Exact Match matches the exact characters in the URL and it is suitable for static URLs. The Regular Expression Match uses special characters for more flexibility. You can choose one of these options based on the URL you use.

Find Website Keywords

One of the advantages of using Google Analytics is it allows you to find the keywords that give you the best ranking in different search engines. Once you identify these keywords, you can build new content that targets them to increase search engine traffic. You can also monitor new keywords to see if they increase traffic to your website. This feature is very helpful and an essential part of the SEO process, because it shows you the direct impact of keyword optimization on the website traffic.

Find Website Keywords

9781118470664-fg0841.eps

001Click All Web Site Data, or your own profile name on the Analytics Account Home page.

9781118470664-fg0842.eps

The Standard Reporting page appears.

002Click Traffic Sources to expand the menu.

003Click Sources.

9781118470664-fg0843.eps

The Sources link expands.

004Click Search.

9781118470664-fg0844.eps

The Search link expands.

005Click Organic.

The organic traffic appears in the statistics.

TIP

What is the Search Engine Optimization link?

In addition to the Traffic Sources data, you can maximize your knowledge of website keywords and traffic using the Search Engine Optimization link. This link allows you to link between Google Analytics and Google Webmaster Tools, which gives you more information about the website links and keyword queries. These queries are what users use to search for website pages. When you link Google Analytics with Webmasters Tools, you can check the queries in more depth. Also, you will be able to learn about website home page and where users go when they visit your website.