Академический Документы
Профессиональный Документы
Культура Документы
GUIDE TO
SEO
BY NEIL PA TEL
AND
SUJAN PA TEL
INTRODUCTION
Why Did I Write This Guide?
T o my readers, I wanted to give you the most ex tensive and
detailed guide of advanced SE O techniq ues that ex ists today.
T his resource is piled to the top with tactile, immediately
actionable things you can do to your website, to improve
rankings, performance and traffic. E verything from schema.org
to mobile search to link building and site speed. I want you to
all be insanely successful and prosperous on the web!
CHAPTER ONE
INDEXATION & ACCESSIBILITY
You could have the best content in the world, the most amazing
audience and even traffic coming from all kinds of places like social
media and referrals. B ut if the search engines can t properly access,
crawl and index your site none of that matters for SE O . T hat is why
in this section you re going to learn how to look at your website from
the search engine s point of view. You re going to be able to do a full
crawl of your own site, handle migrations, redesigns and much more.
CHAPTER TWO
SITE SPEED & PERFORMANCE
It is well known by now that G oogle has said site speed is a small ranking factor
( about 1 % ) . T his is tiny, but it s rare for G oogle to say that anything has a definite
effect on rankings. So it makes so much sense to follow this advice. P lus, user low
fast and responsive sites. T hey will feel more in control of their ex perience,
consume your amazing content more efficiently and convert better.
A nd after section one, the engines are index ing your site better, so let s take it to
the nex t level. T his section will teach you how to measure and analyze your site s
speed and performance, as well as give some advanced actionable ways to improve.
CHAPTER THREE
NEW SEARCH
SE O is growing fast and changing everyday. It s way more
than j ust title tags and some back links. You have to have a
semantically relevant site. O ne in which the engines ( and
people! ) understand what the page is about in relation to real
world things - like the concept of actors relating to movies or
people having a birthday.
R ead this section to stay ahead of the new search frontiers.
CHAPTER FOUR
WORDPRESS
CHAPTER FIVE
CHAPTER SIX
KEYWORD RESEARCH
I m sure you ve all used the adwords keyword tool a lot,
but what about other keyword research tools and
techniq ues? T hat s what this section will cover. W e re
going to go beyond j ust the data G oogle has and use other
keyword tools, search suggest scraping, internal site
search and more.
CHAPTER SEVEN
LINK BUILDING
WITH CONTENT
Since P enguin and P anda, it s harder and
harder to build links the old way; through
directories, email blasts, commenting, or
black hat ways like blog networks and
spinning. T his section will give you some
solid ways to build some content that is link
worthy and valuable to your visitors and will
keep people coming back time and time again.
CHAPTER EIGHT
LINK BUILDING TECHNIQUES
A lthough panda and penguin make it harder to build links like we used
to, once you have ex ceptional content you still need to employ some
killer techniq ues to get that content out there, get it in front of the eyes
that matter, and get people to link back to that content.
T his section has fifteen in depth and actionable ways you can start
building links to that content immediately. E verything from obtaining a
link worthy domain, to using alerts like IF T T T and more.
CHAPTER NINE
SEARCH VERTICALS
You might conq uer the rankings in universal search for your
article, post or product. B ut what about photo? W hat about
mobile and local search? H ere I give you some techniq ues for
optimizing search verticals to perform even better on the web.
TAKE ME TO
CHAPTER ONE
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
01
CHAPTER 01
NO 1
BROWSE YOUR
SITE LIKE A
SEARCH ENGINE
STEP ONE
eb D eveloper
STEP TWO
MAIN
CONTENT
TABS
APPLICATIONS
PRIVACY
ADVANCED
EXCEPTIONS
EXCEPTIONS
Enable JavaScript
ADVANCED
Enable Java
FONTS & COLOURS
Default Font
Default Font
Size:
ADVANCED
16
COLOURS
LANGUAGES
CHOOSE
OKAY
D isable C S S
with the W
W
eb D eveloper Plugin
CANCEL
HELP
STEP THREE
All Styles
Embedded Styles
Inline Styles
Linked Style Sheets
Print Styles
Individual Style Sheet
Tools Window
Help
Web Search
Downloads
Add-ons
Set Up Sync...
Rank Checker
Default User Agent
Web Developer
Web Developer
Page Info
Internet Explorer
Search Robots
iPhone 3.0
Edit User Agents...
Googlebot 2.1
Msnbot 1.1
Yahoo Slurp
STEP FIVE
quicksprout.com
STEP FOUR
N 2
O
STEP ONE
STEP FOUR
STEP FIVE
STEP SEVEN
STEP TWO
SAVE
Save As:
quicksprout-crawl.seospider
Crawls
Name
Date Modified
File Format:
CANCEL
SAVE
STEP THREE
SELECT HTML
SCROLL RIGHT
(ALL THE WAY)
SORT PAGES BY
LEVEL
SCROLL BACK
EXPORT TO CSV
E ven Q uickSprout has some older blog
posts that have ended up 4 - 7 levels deep.
S ide Note: Y ou might wan t to con side r a
pl u gin for W ordP re ss l ike crossl in ke r
STEP FOUR
STEP FOUR
STEP FIVE
[1]
SAVE
Exports
Name
Date Modified
[3] Ex port as C S V
TIP: Immediately save as
an Excel document. You may
File Format:
NEW FOLDER
CANCEL
SAVE
otherwise.
In your E x cel document, you ll want to create a new column for your new title.
A lso, create a column for length.
W
hat a simple way for E x cel to automatically count the characters as you
compose your new title tags? A dd this simple formula to the new length
column; = L EN( E3)
O f cou rse b e su re to re fe re n ce the ce l l y ou hav e y ou r n e w titl e in .
AND THEN
[1]
[2] Hover over the bottom right corner of the formula cell.
[3] W
STEP SIX
STEP SEVEN
STEP SEVEN
You should also head on over to the meta and canonical menu to check your
index ation settings. You should look for things like;
M issin g can on ical tags
I n corre ct C an on ical tags ( poin tin g to a
diffe re n t page e tc)
P age s that shou l d b e in de x e d b u t hav e a
n oin de x tag on the m.
P age s that shou l d N O T b e in de x e d b u t
hav e n o me ta tag or hav e in de x
BONUS
<he
enu
ad>
<ti
SEO tle>
G
</h </tit UI D E
ead
le>
>
N ow, we have all the pages with links that open in a new tab or window!
T his is great for an ex isting site if its not going to change at all. B ut
what do you do when you are getting set to redesign your site? You ll
want to do a self audit in prep for a redesign.
NO 3
PAGES INDEXED
CACHE DATE
PR
DA
WMT ERRORS
NOTES
4/1/2012
4,200
3/23/2012
71
525
New site
launched
4/8/2012
3,750
4/7/2012
67
679
New site
cached
4/15/2012
4,150
4/12/2012
70
482
started to
fix errors
site:quicksprout.com
SEARCH
MONITOR PAGERANK
NO 4
In this tutorial, we will setup your computer so that when you type in the
UR L , it will go to your test website so you can try it out before it goes live
using the real UR L .
STEP ONE
STEP TWO
ON A PC
Google Drive
RAID utility
Desktop
UnRarX
Applications
Utilities
Spaces
Documents
Vagrant
System Profiler
Downloads
VirtualBox
Terminal
inbox
VMware Fusion
Voiceover Utility
[1]
open
http://panda.com
to ex it the editor.
STEP THREE
O pen up a browser and test your website to see if it looks like you ex pect
it. T ype in the UR L to your new website Your hosts file edits will forward
you to the test website.
STEP FOUR
Undo C hanges
O nce tested, you can undo your changes you made in step 2 . Simply go
back to the file and remove the line you j ust created.
N 5
O
MIGRATING TO A NEW
SITE WITHOUT DOWNTIME
W ARN I N G: THIS M IGHT BR ING DO WN Y O U R WEBS I T E
I F S OME THING G OES WR ONG . BE C A R EFU L !
hen migrating to a new website you can use the following guidelines to
ensure a safe transition without any downtime. It takes about a day for all the
servers around the world to get updated IP and domain information so plan to
have both servers running for at least the first week of your new site.
STEP ONE
S et the TTL
[1]
http://godaddy.com
anager
http://godaddy.com
STEP TWO
L ocate the D NS
N ow that you' ve tested your site and changed your T T L , you will want
to change the D N S settings for your domain name. F irst, go to your
current domain registrar, and locate the current D N S settings. T hen
go to your new hosting company and write down the new D N S settings
you need to enter into your current domain registrar. T he instructions
is always different from one hosting company to another and from one
domain registrar to another.
Usually, you can find that setting in your control panel for your
domain, but if you can' t find it, call up your domain registrar and ask
for tech support.
C hange the D NS
STEP THREE
O nce you have them both registrar to be the D N S address you wrote
down from your new hosting company. You should know where to
change them because you already found it in step # 3 .
STEP FOUR
STEP FIVE
You may need to clear your browser' s cache and cookies. If you' re new
website is up, you done! If not, reverse what you did in step # 4 in order to
revert back to your old website.
NO 6
CRAWLABLE AJAX
(USING JQUERY GET)
In this ex ample, we will show you how to use j Q uery s post method to create crawlable
A J A X . F or this tutorial, we will use the X M L H ttpR eq uest P O ST method.
F or additional details about this best practice, go here:
http://googl e we b maste rce n tral .b l ogspot.com/2 0 1 1 /1 1 /ge t- post- an d- safe l y - su rfacin g- more - of.html
STEP ONE
template.
STEP TWO
STEP THREE
STEP FOUR
STEP FIVE
STEP SIX
STEP SEVEN
STEP EIGHT
NO 7
CRAWLABLE AJAX
(WITHOUT HASHES)
T his tutorial is for websites that load dynamic content on the page without
refreshing but changes the UR L . G oogle recommends routing
_ escaped_ fragment_ in your q uery string to an H T M L snapshot. T he
principal idea is that you want to render H T M L for G oogleB ot and
J avaScript for users.
T here are many ways of achieving the same result. T he implementation will
depend on your particular website s setup. In this ex ample, we will use P H P
to decide what to render.
If the UR L looks like this: http://www.e x ampl e .com/in de x .php then we want
P H P to create a page with J avaScript that loads the content dynamically and
asynchronously so that it s fast.
If the UR L looks like this:
https://de v e l ope rs.googl e .com/we b maste rs/aj ax - crawl in g/docs/ge ttin g- starte d
STEP ONE
T his will tell search spiders that the page is crawlable using the
_ escaped_ fragment_ q uery string. In this ex ample, we created a
function that creates the entire < head> tag for us.
Note: L in e 1 0 con tain s the me ta tag that te l l s spide rs to crawl u sin g
e scape d fragme n t.
STEP TWO
In this ex ample, the render_ post has an argument $ render_ snapshot. B y default, the
page will render a regular page for users. If render_ snapshot is true, then it will render a
regular H T M L page for G oogleB ot with the same content.
Notes:
L in e 2 5 of the P H P de cide s if the page shou l d b e H T M L or dy n amic.
L in e s 2 6 - 2 9 ge ts the con te n t an d re tu rn s the H T M L in side the D I V
tag
tag
STEP THREE
In this ex ample, if _ escaped_ fragment_ is found, it will render the post using H T M L .
STEP FOUR
into H T M L .
STEP EIGHT
You should see your content because the Inspect E lement view
is what the H T M L looks like after J avaScript has run.
STEP NINE
www.example.com/index.php
STEP TEN
NO 8
CROSS DOMAIN
REL=CANONICAL
NO 8
CROSS DOMAIN
REL=CANONICAL
WHEN TO USE
THE CROSS DOMAIN CANONICAL
T his is where many people get a little confused, so before the ex act technical
implementation, let s j ust cover when the tag should be used.
U se it whe n the con te n t from the ol d site n e e ds to b e mov e d or du pl icate d
to a n e w site - an d the ol d host doe s n ot prov ide se rv e r side re dire cts.
U se it on l y afte r y ou v e re du ce d on - site du pl ication on the ol d site as
mu ch as possib l e .
I f y ou can do a 3 0 1 re dire ct in ste ad an d this prov ide s a pre fe rre d u se r
e x pe rie n ce , u se the 3 0 1 re dire ct.
A l so, y ou shou l d n ot pu t a n oin de x on a page with a re l = can on ical . T he
page shou l d b e crawl ab l e in orde r to pick u p the re dire ct.
U se it whe n con te n t is the same on b oth page s, or with on l y sl ight
diffe re n ce s.
HOW TO IMPLEMENT
T his is not so different than implementing a regular canonical tag.
[1] G et your two pages ready
[2] B e able to edit the source code on the first ( original) page.
[3] A dd the tag to the < head> section of the old page,
pointing to the new page;
< l in k re l = " can on ical " hre f= " http://www.e x ampl e .com/e x ampl e - page - n ame />
of the NEW
page.
A QUICK EXAMPLE
L et s say I wanted to move this infographic post from Q uickSprout...
http://www.q u icksprou t.com/2 0 1 2 /0 6 /1 1 /5 - way s- to- ge t- y ou r- in fographic- to- go- v iral /
...to K ISSmetrics. P erhaps I wouldn t do this in real life, but let s suppose so,
j ust for the ex ample. W e re going to move it to:
http://b l og.kissme trics.com/5 - way s- to- ge t- y ou r- in fographic- to- go- v iral
INFOGRAPHIC ON
QUICKSPROUT
http://www.q u icksprou t.com/
2 0 1 2 /0 6 /1 1 /5 - way s- to- ge t- y o
u r- in fographic- to- go- v iral /
< he ad>
< l in k re l = can on ical hre f=
http://b l og.kissme trics.com/
5 - way s- to- ge t- y ou r- in fograph
ic- to- go- v iral />
< /he ad>
SAME
INFOGRAPHIC ON
KISSMETRICS
http://b l og.kissme trics.com/5
- way s- to- ge t- y ou r- in fographi
c- to- go- v iral
CANONICAL
POINTS TO
NEW PAGE
Make the links absolute not relative (include the full http:// etc)
NO 9
FIXING HTTPS
DUPLICATE
CONTENT ERRORS
A s I m sure most of you know, https is the protocol by which secure pages are
transferred over the world wide web. P ages such as your shopping cart, login
pages and other secure areas should be at an https address. H owever, this can
potentially cause duplicate content, because of the added s in the UR L .
T ypically, https pages should not be in the index . T hey are usually private pages
and don t have a use for being returned in search results.
If your crawl report or site audit comes back as having https UR L s found on your
site as duplicates, there s three steps you should take to resolve this;
[1]
STEP ONE
Use this special G oogle search to find pages from your site that have been index ed
with https;
site:yourdomain.com inurl:https
You can see the crazyegg website looks totally clean! E x cept for this flash loader,
no https pages have gotten into the index .
inurl:https site:crazyegg.com
About 1 result (0.10 seconds)
[FLASH]
https://crazyegg.com/flash/data_loader.swf
SEARCH
K ISSmetrics. on the other hand is a good ex ample of a site that has some https in
the index .
T his second page here is j ust a normal blog post and should not be in the index
( third result down) .
inurl:https site:kissmetrics.com
SEARCH
A nd these other pages indicated, are supposed to be https pages but should
not be in the index ;
inurl:https site:kissmetrics.com
SEARCH
So what do you do when you find pages in the index that should not be
there? L ike any old page you don t want in the index , you need to find out
why it got there to begin with!
STEP TWO
D iagnose W
L et s use the blog post from above as an ex ample, and look at the page.
You can see G oogle Chrome indicating https is present in the UR L but the page is not
secure. T his in fact confirms the page should not be in the index this way.
Its probably in the index because it got linked to from somewhere, either internally
or external, so were going to use a few tools to try and find the source of the link.
Lets use Screaming Frog first, since we know it will be a complete crawl of the site.
Enter the root domain of the website in Screaming Frog (because some sites, like
KISSmetrics. operate across different subdomains, www / blog etc - we want to be
sure we get a complete crawl of the whole site.)
While crawling the site, you can do a search for the URL of that page and wait for it
to show up.
Then, wait until the crawl is complete and review its In Links.
In this case, there are no internal links pointing to the https:// version of the page.
If an internal link is found, you need to change your internal links and 301 redirect the
https version to the http version.
If no internal link is found, you may be able to find the external link, but may not have
control over changing it. So you have to 301 redirect it to the http version. This will
redirect the user and eventually remove/replace the https version from the index.
NO 10
PAGINATION
WITH REL=NEXT
P agination has always been one of the trickiest elements of on- page SE O
and architecture to handle. B ut now G oogle allows you to use rel= nex t
and rel= prev to help show them you have pages that belong in a series.
W
hen using a CM S like W ordP ress there are many plugins that handle
this for you, including Yoast SE O . B ut if you have a custom made site, or
a site hand coded in pure H T M L , this section will show you have to
correct handle pagination with these new tags. It s q uite simple actually!
B ut you may not find the best source on the internet. H ere I ve made
sure it s bulletproof.
STEP ONE
www.zappos.com
STEP TWO
T hat s right, once you ve identified the pages in the series, page one
only gets the nex t tag since its the first page in the series. T herefore
to page one, in the < head> section we would add;
< l in k re l = " n e x t"
hre f= " http://www.z appos.com/me n s- sn e ake rs- athl e tic- shoe s~ dB >
STEP THREE
C hange the D NS
E very page but the first and the last should have a nex t and prev
tag. T his makes sense since there are pages before and after. P age two
( mens- sneakers- athletic- shoes~ dB ) would have this;
< l in k re l = " pre v "
hre f= " http://www.z appos.com/me n s- sn e ake rs- athl e tic- shoe s~ dA >
< l in k re l = " n e x t"
hre f= " http://www.z appos.com/me n s- sn e ake rs- athl e tic- shoe s~ dC >
STEP FOUR
T he last page in the seq uence only needs to refer to the page before it, so we
STEP FOUR
T he last page in the seq uence only needs to refer to the page before it, so we
would add;
< l in k re l = " n e x t" hre f= " http://www.z appos.com/me n s- sn e ake rs- athl e tic- shoe s~ dY >
NO 11
REDIRECTING ERROR
PAGES WITH .HTACCESS
Create a page in which the errors will return from - you can call it
anything - error.php works.
O n that page, add the following code to the top;
<? php
switch( $ _ SER V ER [ "R ED I R EC T _ ST AT US"] ) {
case 400:
$ title = "400 B ad R eq uest";
$ description = "T he req uest can not be processed due to bad syntax ";
break;
case 401:
$ title = "401 Unauthoriz ed";
$ description = "T he req uest has failed authentication";
break;
case 403:
$ title = "403 F orbidden";
$ description = "T he server refuses to response to the req uest";
break;
case 404:
$ title = "404 N ot F ound";
$ description = "T he resource req uested can not be found.";
break;
case 5 00:
$ title = "5 00 I nternal Server Error";
$ description = "T here was an error which doesn' t fit any other error
message";
break;
case 5 02:
$ title = "5 02 B ad G ateway";
$ description = "T he server was acting as a prox y and received a bad
req uest.";
break;
case 5 04:
$ title = "5 04 G ateway T imeout";
$ description = "T he server was acting as a prox y and the req uest timed
out.";
break;
}
? >
T his P H P code creates a different title for each type of error. T his way
you don t need a ton of different files. W e re doing it all within one file.
In this ex ample we re j ust creating a uniq ue title and description for each
error page. B ut you can add ex tra variables and create any uniq ue content
you want.
STEP TWO
C onfigure .htaccess
You ll need to redirect a bunch of error codes to the error page. You should
add the following lines to .htaccess
ErrorD
ErrorD
ErrorD
ErrorD
ErrorD
ErrorD
ErrorD
ocument
ocument
ocument
ocument
ocument
ocument
ocument
400
401
403
404
5 00
5 02
5 04
/error.php
/error.php
/error.php
/error.php
/error.php
/error.php
/error.php
NO 12
R SS feeds are such a huge part of blogging. Yet we sometimes overlook how powerful
it can be to optimize these feeds! T he following hands on tips should help you get the
most out of your R SS feed.
T his assumes you re using feedburner.
R eplace D efault R S S
A ssuming you re using F eedB urner, do all the links on your website point to the
correct feed? T he header section of the Q uick Sprout site points to the feedburner feed.
If you re site does not do this, you need to change the feed UR L in the header.php
file ( if using W ordP ress) or where ever your CM S allows.
Find the R S S
Q uick W
ins I n Feedburner
T here s a few simple features you can easily activate in F eedB urner. L et s make sure
you ve got them covered!
A ctivate S martFeed
SmartF eed helps to make your feed compatible in any reader.
A nd activate it!
A ctivate FeedFlare
F eedflare is a way to put link at the bottom of your feed to ask users to do things like
share on F acebook, email, bookmark on delicious etc.
T his is an essential must for any R SS feed.
In the O ptimize tab, click F eedF lare.
Select the links you want to appear. F eed means they will appear in the R SS feed.
Site means they will appear in the website, if you send the feed out to a website.
N ex t, we re going to add some personal flares. T hese are simple flares people have
created that do not ex ist in the default set of flares.
Click B rowse the Catalog .
N ex t, we re going to add some personal flares. T hese are simple flares people have
created that do not ex ist in the default set of flares.
Click B rowse the Catalog .
you will see your flare appear above. Select where you want it to show ( F eed, Site or both) .
B elow, you can view a preview of your flares. R eorder them by dragging and dropping
the items.
B elow, you can view a preview of your flares. R eorder them by dragging and dropping
the items.
[1]
Site F eed
E ditor
ordP ress
functions.php
B rowserF riendly
Content O ptions
Emails
Time Your R S S
Emails
E ncourage more opens from your R SS email list by controlling send time.
G o to P ublicize
E mail Subscriptions
D elivery O ptions
Select your timezone and the best time for your audience. 9 am- 1 1 am is
often a good choice.
R edirect W
ordPress R S S
to Feedburner
You may have a standard R SS feed built into W ordP ress. You may even
have subscribers to it! W ith the help of a P lugin called F eedburner
R edirect we re going to make sure everything is going through
feedburner.
You can find the plugin here -
http://wordpre ss.org/e x te n d/pl u gin s/te n tb l ogge rs- fe e db u rn e r- rss- re dire ct- pl u gin /
[1]
Install it in your W
[2]
A ctivate it.
VIDEO SITEMAPS
NO 13
VIDEO SITEMAPS
- M
A NUA L
G ENER A TI O N
If you have a small site with only a few videos, and you re not adding them all
of the time, you can easily generate your video X M L sitemap manually.
F irst, I want to provide you with the skeleton template of the X M L structure.
You can cut and paste the template and then add your own data.
T his is j ust the most basic template with the req uired fields.
STEP ONE
C reate an Empty X M
File
Create a file, the name doesn t matter, but I like to use: sitemap_ video.x ml
T hen save it in your root directory, like:
A s mentioned, it doesn t matter so much what you name it or even where you put
it, but you ll need to know this later for when you submit the sitemap to
W ebmaster T ools.
STEP TWO
File
<urlset x mlns="http://www.sitemaps.org/schemas/sitemap/0.9"
x mlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc></loc>
<video:video>
<video:thumbnail_ loc></video:thumbnail_ loc>
<video:title></video:title>
<video:description></video:description>
<video:content_ loc></video:content_ loc>
<video:player_ loc allow_ embed="yes"
autoplay="ap=1"></video:player_ loc>
</video:video>
</url>
</urlset>
E x planation of above code;
Many of the properties in the template are optional, but I wanted you to have the whole
thing :-)
Required Fields
URL of Page
Video File URL or Player URL
Title
Description
Thumbnail
So lets fill in our example template. Ive stripped out all the other properties for now, so
you can clearly see it with only the required elements;
Basic Code for One Video in XML Video Sitemap
<url>
<loc>http://www.quicksprout.com/videos/neil-patel-video-1.html</loc>
<video:video>
<video:thumbnail_loc>http://www.quicksprout.com/thumbs/thumbnail.jpg</video:thu
mbnail_loc>
<video:title>Advanced SEO for Bloggers</video:title>
<video:description>An exclusive video with SEO expert Neil Patel. Drive
ridiculous amounts of leads to your blog and learn the 7 secrets of conversion
rate optimization.</video:description>
<video:content_loc>http://www.quicksprout.com/video.flv</video:content_loc>
</video:video>
</url>
Lets add a few of these back into our example, so you can see them in action!
<url>
<loc>http://www.quicksprout.com/videos/neil-patel-video-1.html</loc>
<video:video>
<video:thumbnail_loc>http://www.quicksprout.com/thumbs/thumbnail.jpg</video:thu
mbnail_loc>
<video:title>Advanced SEO for Bloggers</video:title>
<video:description>An exclusive video with SEO expert Neil Patel. Drive
L et s add a few of these back into our ex ample, so you can see them in action!
<url>
<loc>http://www.q uicksprout.com/videos/neil-patel-video-1.html</loc>
<video:video>
<video:thumbnail_ loc>http://www.q uicksprout.com/thumbs/thumbnail.j pg</video:thu
mbnail_ loc>
<video:title>Advanced SEO for B loggers</video:title>
<video:description>An ex clusive video with SEO ex pert N eil Patel. D rive
ridiculous
amounts of leads to your blog and learn the 7 secrets of
conversion rate optimiz ation.</video:description>
<video:content_ loc>http://www.q uicksprout.com/video.flv</video:content_ loc>
<! --optional properties-->
<video:duration>7 5 0</video:duration>
<video:rating>4.1</video:rating>
<video:view_ count>5 4321</video:view_ count>
<video:publication_ date>2012-04-01T 19:20:30+08:00</video:publication_ date>
<video:family_ friendly>yes</video:family_ friendly>
<video:restriction relationship="allow">I E G B US C A</video:restriction>
<video:req uires_ subscription>no</video:req uires_ subscription>
<video:live>no</video:live>
</video:video>
</url>
M any of these should be self ex planatory. You can always check G oogle s documentation
for further ex planation of all the individual fields allowed.
STEP THREE
O ption A
S ubmit it to W
ebmaster Tools
NO 14
.HTACCESS HACKS
T hese tips only work if your client is using A pache. If your client is using
W indows IIS, then look at IIS hacks.
[1]
[2] O nce you ve located it, edit the file using a tex t editor.
If you are using W indows, I recommend N otepad. If you re using M ac,
download a free tex t editor like T ex tW rangler.
[3] I n your htaccess file decide what you want to do, then add a line of code:
To create a custom 40 4 page
Use E rrorD ocument and put the UR L to your custom 4 0 4 page at the end.
E x ample:
E rrorD ocument 4 0 4 http://www.e x ampl e .com/my - cu stom- 4 0 4 - page .html
To password protect a folder
A . F irst, you will need to first need to create an .htpasswd file. T he easy way is to
use this online tool to create it: http://www.tool s.dy n amicdriv e .com/password/
B . E nter your desired username on the left, and the password you want that person
to have on the right.
C. In the path to .htpasswd box , put it in a folder that isn t accessible to the
public. Usually, it s safe to put in your home directory like / home/ myusername
D . Click submit and put the downloaded .htpasswd file into / home/ myusername
E . N ow that you re done that, type this into your .htaccess file
AuthUserF ile /home/myusername/.htpasswd
AuthN ame EnterPassword
AuthT ype B asic
req uire user some_ users_ name
R eplace some_ users_ name with the username that will be allowed into this
folder.
To block users by I P address
T ype these four lines into your .htaccess file:
O rder allow, deny
D eny from 111.222.333.444
D eny from 5 5 5 .666.7 7 7 .888
Allow from all
In the lines that say deny from, replace the ex ample IP addresses
111.222.333.444 with the real IP address you want to block.
To block users by referrer
A dd these three lines to your .htaccess file:
R ewriteEngine O n
R ewriteC ond % { H T T P_ R EF ER ER }
R ewriteR ule .* - [ F ]
somedomain\ .com [ N C ]
R ewriteEngine
R ewriteC ond % {
R ewriteC ond % {
R ewriteC ond % {
R ewriteR ule .*
somedomain\ .com [ N C ,O R ]
anotherdomain\ .com [ N C ,O R ]
3rdD omain\ .com [ N C ]
If you want to block more than one referrer, add more R ewriteCond lines like this:
O n
H T T
H T T
H T T
-
P_ R EF ER ER }
P_ R EF ER ER }
P_ R EF ER ER }
[ F ]
N otice that every line ex cept for the last one should end in [ N C ,O R ]
Notice that every line except for the last one should end in [NC,OR]
To make something other than index.html be the default page.
Lets say you want home.html to be your default page. Use this line in the
htaccess file:
DirectoryIndex. home.html
RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,NC]
Replace "olddomain.com" with your old domain name. This will 301 redirect links
form your old domain to your new one with the WWW in front of it.
To prevent someone hotlinking resources on your website
Add these lines to your htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|js|css)$ - [F]
Replace mydomain.com with your domain name. These lines will prevent someone
from hot linking GIF, JPG, JS, and CSS files.
To redirect all pages from HTTPS:// to HTTP://
Add these lines to your htaccess file
RewriteEngine on
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ https://www.domain.com/$1 [NC,R=301,L]
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ http://www.domain.com/$1 [NC,R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} !^80$
RewriteCond %{HTTP_HOST} ^www.domain.com/mypage.html [NC]
RewriteRule ^(.*)$ http://www.domain.com/mypage.html [NC,R=301,L]
DETECTING GOOGLEBOT
NO 15
// what to do
string
$ _ SER V ER - this is an array with information such as headers, paths, and script
// what to do
forward slashes / / are j ust used to make a comment. A ll we re saying here, is to put
whatever you want to happen between the curly brackets.
If you like visuals better - this is a good ex planation of the pieces of code;
NO 16
custom G oogle search on your site can be a powerful feature, yet still many
people are not using it. I m going to walk you through the steps of installing
it on your site.
G o to - http://www.googl e .com/cse
STEP ONE
STEP TWO
You can t j ust simply add the site UR L - you must include an
asterisk ( * ) after the UR L for it to search the entire site, like this;
http://www.q u icksprou t.com/*
STEP THREE
LETS
LETS
CHECK IT OUT
I NS TA L L I NG
C US TO M
S EA R C H I N YO UR
S I TE
ode
LETS
PREVIEW IT
NO 17
MULTILINGUAL MARKUP
AND GOOGLE TRANSLATE
I m going to show you a way to allow visitors who speak any language to enj oy
NO 17
MULTILINGUAL MARKUP
AND GOOGLE TRANSLATE
I m going to show you a way to allow visitors who speak any language to enj oy
your site, with the installation of G oogle T ranslate. T his is fairly new, and not
many people are doing it, so its still a good time to get in early.
N avigate to: http://tran sl ate .googl e .com/tran sl ate _ tool s
PHASE I
STEP ONE
ebpage
STEP TWO
STEP THREE
Q UI CK TI P:
F AS T W AY TO FIND YOU R G OOG L E A N A L Y T I C S I D
1.
2.
3.
4.
G O T O Y OU R WEBPAG E
V I E W S O URCE
C O N TRO L F (I N CHRO M E) TO FI N D TEXT
S E A RC H F OR U A- (WI TH THE DASH)
A fter you ve made all of your selections you should see the completed snippet of code.
PHASE II
INSTALLING THE
CODE ON YOUR SITE
N ow that we ve got the code ready, it needs to be installed on your site. If you re
running a content management system like W ordP ress, this should be fairly
easy. W e re j ust going to locate the spot where the code needs to be inserted.
STEP ONE
D ecide W
here You W
T here s likely to be two basic places you ll decide to install the box .
O ption A
O ption B
STEP TWO
STEP TWO
You can see, it needs to go inbetween the search box and the logo.
[1]
L og I nto W
[2]
ordPress
[3]
[4]
[1]
STEP TWO
T his option is a little easier, because you will likely be able to j ust
create a new tex t widget.
[1]
[2]
idget
[3]
NO 18
BLOCK POTENTIALLY
MALICIOUS OR HARMFUL
LINKS TO YOUR SITE
T hese pages can get index ed as such, and could potentially replace the real pages in
their index . T his is unlikely, but in either case, you may need a way to fix this if it
happens. H ere s a bit of .htaccess code to do so:
#
F I X B AD L I N K S
<ifModule mod_ rewrite.c>
R ewriteC ond % { Q UER Y _ ST R I N G } q uerystring [ N C ]
R ewriteR ule .* http://ex ample.com/$ 1? [ R =301,L ]
</ifModule>
NO 19
https://chrome .googl e .com/we b store /de tail /oj kcdipcgfae kb e ae l aapakgn j fl fgl f
eb D eveloper
https://chrome .googl e .com/we b store /de tail /aomidfkchockcl dhb kggj okdkke b mdl l
SE O moz T oolbar
Chrome Sniffer
https://chrome .googl e .com/we b store /de tail /j n kmfdil e e l hofj cij ame phohj e chhn a
https://chrome .googl e .com/we b store /de tail /oal b ifkn mcl b n mj l l j de mhj j l kmppj j l
ord Count
https://chrome .googl e .com/we b store /de tail /kmn dj oipob j fj b hocpoe e j j imchn b j j e
Source K it
https://chrome .googl e .com/we b store /de tail /iie e l dj dihkpoapgipfke oddj ckopgj g? hl = e n - U S
C hrome S niffer
T his plugin automatically shows you the CM S or script library a website uses.
E x tremely handy if you are looking to reach out to only W ordP ress site owners, for
ex ample.
A s you browse the web, the icon to the far right of the UR L will change to match
which CM S or library is being used.
F or ex ample, you can see that my site is built on W
with D rupal
A nd then you can click on the icon and it will show you the redirect ( or series of
redirects) that the browser took to get to a page.
TAKE ME TO
INTRODUCTION
TAKE ME TO
CHAPTER TWO
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
02
CHAPTER 02
NO 1
MEASURING YOUR
SITE SPEED
P age speed or page load time is crucial these days, not only
for a possible small boost in rankings, but because u se rs wil l
l ov e y ou . P roviding a fast ex perience for visitors is essential!
W
STEP ONE
R un The Tool O n
Your Homepage
STEP TWO
R un The Tool O n
Your Homepage
STEP TWO
You should focus on the high and medium priority items first.
Click on each item to get the details.
STEP THREE
T he H om
O B I L E S ite S peed
ep age)
STEP FOUR
O B I L E S ite S peed
NO 2
You may know that you can also track page load
speed within analytics. B ut you may not know of a
few little ex tras you can do along with this.
W
SETTING UP
TRACKING IN
WORDPRESS
STEP ONE
You probably all know how to install the normal analytics tracking in W ordP ress,
and you may even know how to install the page speed code snippet as well.
e re using the G oogle A nalyticator P lugin for this.
A gain, this is likely very basic, but j ust a reminder. Install the tracking code here.
NEXT
B efore we configure the page speed part, we re j ust going to be sure you ve
configured the user tracking correctly. M ight as well, since we re in here, right?
S elect no
NEXT
T he site speed portion. Its made so easy in this analytics plugin.
S T E P T W O S et S ample R ate
N ot many people know to do this, but you can set your sampl e rate . N ormally,
G oogle A nalytics does not track a very large percentage of your site speed data
( on l y 1 % b y de fau l t) so if you have a small site, you could potentially be
missing out on a lot of important data.
T his gets installed before tracker initializ ation, so be sure to put it in the
correct box .
H ere s the code snippet ( T he A sync snippet) ;
_ gaq .push( [ ' _ setSiteSpeedSampleR ate' , 5 ] ) ;
N otice the number 5 . T his is the new sample rate 5 % of all visits. F or a small
site, that receives less than about 1 0 , 0 0 0 visits a month, feel free to crank that
up to 5 0 or even 1 0 0 , but only a reasonable amount to collect the data you need.
B ut please note, that if your site receives more than 1 0 K
automatically only collect a 1 % sample.
It is also recommended to keep your sample size as low as possible but large
enough to collect data.
STEP THREE
You should always check your source code to be sure its rendering correctly.
( R e me mb e r, don t che ck it whil e l ogge d in to W ordP re ss, b e cau se as an admin
y ou wil l b e e x cl u de d from se e in g the code ) .
STEP THREE
You should always check your source code to be sure its rendering correctly.
( R e me mb e r, don t che ck it whil e l ogge d in to W ordP re ss, b e cau se as an admin
y ou wil l b e e x cl u de d from se e in g the code ) .
You should see the Sample R ate code j ust above the T rack P ageview code, as
shown in the screenshot.
02
SETTING UP
TRACKING IN
NON WORDPRESS
STEP ONE
D epending on how your custom site may be set up, you might have a .php file
that handles the header ( l ike in W ordP re ss) or you may have static H T M L files
with the header in each file ( in which case y ou wil l hav e to u pdate e v e ry fil e ) .
O ur ex ample will have a header.php file.
STEP TWO
T his is all pretty basic, but j ust make sure you have the page load time code
added in analytics;
Your analytics will look like the following, with the page load code bolded;
<script type="tex t/j avascript">
var _ gaq
= _ gaq
| |
[ ] ;
Your analytics will look like the following, with the page load code bolded;
<script type="tex t/j avascript">
var
_ gaq
_ gaq
_ g a q
_ gaq =
.push( [
.push( [
. p u s h ( [
_ gaq | | [ ] ;
' _ setAccount' , ' UA-15 89983-1' ] ) ;
' _ trackPageview' ] ) ;
' _ t r a c k P a g e Lo a d Ti m e ' ] ) ;
( function( ) {
var ga = document.createElement( ' script' ) ; ga.type =
' tex t/j avascript' ; ga.async = true;
ga.src = ( ' https:' == document.location.protocol ? ' https://ssl'
' http://www' ) + ' .google-analytics.com/ga.j s' ;
var s = document.getElementsB yT agN ame( ' script' ) [ 0] ;
s.parentN ode.insertB efore( ga, s) ;
} ) ( ) ;
STEP THREE
O verview
Site Speed
NO 3
STEP ONE
USING YAHOOS
YSLOW PLUGIN
I nstall YS low
G o to http://y sl ow.org/
Install the YSlow plugin in your browser
( pre tty mu ch an y thin g b e side s I n te rn e t E x pl ore r) .
STEP TWO
www.zappos.com
STEP THREE
A lso, note that you can filter the report of the type of result.
A s a strategy of prioritization, I would focus on the F s first.
name:
is seo?
1 . what
w?
t i s y s lo
2 . wha
ts?
req ues
H T T P
r
e
w
e
f
e
?
3 . mak
wtowrk
very ne
li
e
d
t
n
a conte
4 . Use
href
d SR C
h gzip?
5 . A voi
nts wit
e
n
o
p
om
press c
6 . Com
top?
CSS at
7 . P ut
kups?
N S lo o
D
e
c
u
8 . R ed
E ach error provides a short ex planation and a link to read more information
on the Yahoo D eveloper site.
NO 4
FINDING LARGE
IMAGES TO REDUCE
L arge images are often the biggest culprit when it comes to slow site
speed. I m going to show you a few ways to find the worst offenders so
you can take action and reduce them.
01
GOOGLE
IMAGE
SEARCH
T hat s right! You can find large images within G oogle image search. T his
is a q uick method to catch any low hanging fruit.
STEP ONE
D oA
S ite S earch
STEP TWO
site:q uicksprout.com
shows me all the images from my site G oogle has index ed;
images.google.com
STEP THREE
STEP FOUR
STEP THREE
Filter B y S iz e
STEP FIVE
L ook at R esults
hen you re looking at results, see if you spot any images that end up
as being large that you know shouldn t be. You know they re probably
being resized in the CSS or H T M L and should be reduced to the actual
size you want.
H ere are the results. T his one image caught my attention;
images.google.com
02
USE SCREAMING
FROG SEO
SPIDER
STEP ONE
Sort by size
E x port to .csv
Use the spreadsheet as you track your progress to reducing images. You may
have a lot of large images, and reducing them could take a few sessions!
N 5
O
GOOGLE CLOSURE TO
OPTIMIZE FOR SPEED
hen you minify your J avaScript and turn it into a single file you increase the speed
of your website because it s only one small download instead of many larger ones.
T his tutorial will help you install G oogle Closure T ool and minify all of your
J avaScript.
[1]
Google Drive
compiler-latest
compiler.jar
Desktop
compiler-latest.zip
COPYING
Applications
README
Documents
Downloads
inbox
Google Drive
compiler-latest
compiler.jar
Desktop
compiler-latest.zip
COPYING
Google Drive
README
Desktop
Applications
favicon.iso
application.js
img
bootstrap.js
javascripts
bootstrap.min.js
Documents
Applications
job-ques
compiler.jar
Downloads
Documents
robots.txt
d3.min.js
inbox
Downloads
stylesheets
extensions.js
inbox
jquery_spinner.js
Google Drive
TimeTracker
Podcast Capture
Desktop
TinkerTool
RAID Utility
Applications
TinyUmbrella
Documents
Spaces
Utilities
System Profiler
Vagrant
Terminal
Downloads
inbox
ON A WINDOWS
T ype in ~ / then the folder where your J avaScript files are located.
In this ex ample, my J avaScript was in the home directory under a
folder called code, then os2 , then public, then j avascripts.
ON A WINDOWS
T ype in cd \ then the folder where your J avaScript files are located.
[7 ] Type in the J ava command to create your minified J avaS cript file
ON BOTH WINDOWS AND MAC:
[8] Add the minified JavaScript file back into your project
In this example, we added line 8 to add the JavaScript back into this
HTML file.
[9] Finally, test your application to make sure everything is still running
NO 6
OPTIMIZING CSS
AND JS FILES
In sections two and three we covered how to evaluate the performance of your site. H ere
we re going to cover an advanced way to optimize CSS and J S files, with L E SS .
L ES S is a dynamic stylesheet language that creates CSS for you. T he advantage of using
L E SS is that a L E SS compiler will automatically make your CSS files smaller so they are
faster to download for your users.
STEP ONE
L ess has a free application you can download to compress your CSS files
FOR MACS
G o to http://in cide n t5 7 .com/l e ss/ and download L ess.A pp.
http://incident57.com
FOR WINDOWS
G o to http://win l e ss.org/ and download the W
http://winless.org
STEP TWO
STEP TWO
FOR MACS
Google Drive
Less
Desktop
Less.zip
Applications
Documents
Downloads
inbox
STEP THREE
BEFORE
AFTER
Google Drive
index.php
404.php
Google Drive
index.php
404.php
Desktop
modernist
archive.php
Desktop
modernist
archive.php
pagelines
editor-style.css
pagelines
editor-style.less
readme.txt
footer.php
readme.txt
footer.php
twentyeleven
ie-fixes.less
twentyten
index.php
Applications
Documents
Downloads
inbox
STEP THREE
twentyeleven
twentyten
ie-fixes.css
Applications
Documents
index.php
Downloads
style.css
inbox
files
style.less
STEP FOUR
T his will create new CSS files that have been minified for faster downloads.
STEP FIVE
hile the application is open, every time you change your less files, it will
automatically update the minified CSS for you.
Your L E SS files will look normal so you can still edit them:
In this ex ample we shaved off 2 k in file size. W hile it s only a small difference
doing many small optimization tweaks will add up and give your users a much
faster download.
NO 7
[1]
INSTALLING GOOGLES
MOD_SPEED FOR APACHE
I nstalling G oogle s M
O D _ S PEED
for A pache
If you are running your website on an A pache server and you have control over
the configuration of the server at the module level, then you can install the
M O D _ P A G E SP E E D module for an easy speed boost.
WARNING: Although this tutorial looks very advanced, its relatively easy for someone
with experience configuring Apache at the server level. However, doing this on your own
with no experience may result in your whole website going down! You should know how to
install Apache modules and configure your webserver from a command line. If you dont
know how then you should leave this up to a professional web developer or system
administrator who has experience.
see:
https://de v e l ope rs.googl e .com/spe e d/docs/mod_ page spe e d/u sin g_ mod
wget
https://dl-ssl.google.com/dl/linux /direct/mod-pagespeed-beta_ current_ i3
86.deb
wget
https://dl-ssl.google.com/dl/linux /direct/mod-pagespeed-beta_ current_ am
d64.deb
apt-get -f install
wget
https://dl-ssl.google.com/dl/linux /direct/mod-pagespeed-beta_ current_ i3
86.rpm
wget
https://dl-ssl.google.com/dl/linux /direct/mod-pagespeed-beta_ current_ x 8
6_ 64.rpm
yum install at
CONFIGURING MOD_PAGESPEED
[1]
If you re using CentO S or F edora or R edhat, the file will be located in:
/etc/httpd/conf.d
ModPagespeed on
NO 8
BROWSER CACHING
(NON-WORDPRESS SITE)
M ost of you are likely running W ordP ress sites, and we re going to cover some
plugins you can use with W ordP ress to speed up performance.
B ut for some of you who may not be running W
some technical info on optimizing for speed.
H ere, we re going to cover some advanced things you can do within your .htaccess
file to leverage browser caching. So when you see that warning within G oogle
P ageSpeed O nline, you can use the following techniq ues to fix it.
N O T E : You should be a little comfortable
STEP ONE
Use your F T P client of choice, or you can download and use F ileZ illa -
I am sure you are familiar with how to log in via F T P , but in case you need a q uick
reminder;
Host: website name
Username
Password
Port: most cases you can leave this blank
STEP TWO
T his is located in the root directory. M ake sure you can see hidden files,
otherwise you may not notice it.
STEP THREE
PHOTO FILES
[1]
Turn R ewriteEngine O n
this should be the first thing in the .htaccess file
wrapper tags
[4] A dd the code which creates the caching and sets the max time
to one week
[5 ] A dd the same code for other photo file types .png and .gif
CSS
CSS
N otice the code is basically the same, but
we ve chosen a different length of time for
the css.
T his will cache your CSS for one day. A gain,
this depends on how often you change your
css files, and how often people return back
to your site.
JAVASCRIPT
T he code for j avascript caching is also
similar, but in this case we ve set it to a
month.
T his will depend on how heavily your site
req uires J avascript and how often it changes.
TIME CHEAT-SHEET
H ere s a few different time frames, since they are calculated in seconds;
5 minutes in seconds = 3 0
1 day in seconds = 8 6 , 4 0 0
1 week in seconds = 6 0 , 4 8
1 month in seconds = 2 , 6 2
6 months in seconds = 1 5 ,
1 year in seconds = 3 1 , 5 3 6
0
0 0
9 ,0 0 0
7 7 4 ,0 0 0
, 0 0 0 ( basically infinite )
A s mentioned, you can mix and match the file types with time frames that make sense
for your site. W hen in doubt, set your time frames a little shorter j ust to be safe!
If you ve followed and implemented the tips in this section you should have one of the
faster sites on the web! N ex t we re going to cover new and groundbreaking areas of
search. You should be doing these things now to stay ahead of the competition.
TAKE ME TO
CHAPTER ONE
TAKE ME TO
CHAPTER THREE
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
03
CHAPTER 03
NEW SEARCH
NO 1
SCHEMA.ORG METADATA
IMPLEMENTATION
01
BASIC ATTRIBUTES
OF MICRODATA
ITEMSCOPE
ITEMTYPE
ITEMPROP
ITEMID
ITEMREF
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Example Page With No Metadata</title>
</head>
<body>
<section>
<h1>Anything You Want</h1>
<span>Author: Derek Sivers</span>
<span>Category : business</span>
<a href="http://sivers.org/ayw/">About the book</a>
</section>
</body>
</html>
You can see it is just pure HTML with no special markup. Now, here is the code
with metadata;
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Example Page With Microdata</title>
</head>
<body>
<section itemscope itemtype="http://schema.org/Book">
<h1 itemprop="name">Anything You Want</h1>
<span>Author: <span itemprop="author">Derek Sivers</span></span>
<span>Category : <span itemprop="genre">business</span></span>
<a href="http://sivers.org/ayw/"><span itemprop="detail">About the
Book<span></a>
</section>
</body>
</html>
ITEMSCOPE
<section itemscope itemtype="http://schema.org/Book">
</section>
Everything about the book goes in between the itemscope element. Youre telling
the search engines everything inside here is about a book
ITEMPROP
<h1 itemprop="name">Anything You Want</h1>
Itemprop is also the author and the category and the genre of the book. Pretty
simple so far, right?
Youre using a <span> tag to insert the itemprop elements.
02
USING SCHEMA
IN YOUR BLOG
I know many of you likely run blogs of some sort. W ell you can put schema data into
blogs as well! If you re using wordpress you ll want to check with the author of your
theme to see if this is possible, or if wordpress will strip out the tags. T his does
depend on your specific wordpress setup, so I will show you a generic ex ample below.
EXPLANATION OF ELEMENTS
REL = AUTHOR
You may be wondering why this is inside the < head> < / head> of the H T M L . T hat is
because G oogle now allows you to reference the author in this way.
It s as simple as it looks;
<a rel="author"
href="https://profiles.google.com/10307 4333439002308043/about">B idhan
C hatterj ee</a>
T hat code goes in the < head> and then you point your G oogle P lus profile back at
your blog - j ust like in the section on G oogle A uthorship, which you can find later in
this guide.
INTEMSCOPE
A gain, j ust like before, this is used to signal the type of thing or item your document
is talking about.
BONUS: SOCIAL SHARING SCHEMA
You can also include social sharing data in your schema. T he elements itemprop
and interactioncount will do the trick, for ex ample.
<meta itemprop="interactionC ount" content="F acebookL ikes:8"/> <meta
itemprop="interactionC ount" content="G ooglePlus:3"/>
TESTING
A s always you ll want to test your markup with the rich snippet tester provided by
G oogle: http://www.googl e .com/we b maste rs/tool s/richsn ippe ts
NO 2
VIDEO INDEXATION
MARKING UP YOUR VIDEOS
WITH SCHEMA.ORG
SEARCH
It turns out adding the code is not too difficult, you j ust need to know the proper markup
to use.
B efore you begin, there s a few assumptions;
[1]
STEP ONE
beds for ex am
p le)
STEP TWO
STEP THREE
A dd B asic M
arkup
N ame
T hu mb n ail
D u ration
D e scription
T he name and description fields are added within < span> tags which wrap
around ex isting content;
T he duration and thumbnail properties go within < meta> tags which typically get
added below the name and before the actual video;
STEP FOUR
A dd A dditional M
arkup
You can add any property for a M ediaO bj ect ( the pare n t ob j e ct of a V ide oO b j e ct) ;
associate dA rticl e
b itrate
con te n tS iz e
con te n tU R L
du ration
e mb e dU R L
e n code sC re ativ e W ork
e n codin gF ormat
e x pire s
he ight
pl ay e rT y pe
re gion sA l l owe d
re q u ire sS u b scription
u pl oadD ate
width
O r you can add properties ex clusive only to video;
caption
produ ction C ompan y
thu mb n ail
tran script
v ide oF rame S iz e
v ide oQ u al ity
H ere s an ex ample with upload date, width and height added;
G o add your video markup and steal massive clicks from the competition!
FINISHED CODE
02
AN
EXAMPLE
[1]
the data
Using the wrapper tag <cd:artist></cd:artist> ( or cou n try , price e tc) you
can declare the properties of the album you are referencing.
03
COMPLETED
CODE
EXAMPLE
H ere s an ex ample of the completed code which you can use and modify for your needs
<? x ml version="1.0"? >
<rdf:R D F
x mlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax -ns# "
x mlns:cd="http://www.cdstore.com/cd01">
<rdf:D escription
rdf:about="http://www.cdstore.com/cd01/T hriller">
<cd:artist>Michael J ackson</cd:artist>
<cd:country>USA</cd:country>
<cd:company>Epic R ecords</cd:company>
<cd:price>12.99</cd:price>
<cd:year>1982</cd:year>
</rdf:D escription>
</rdf:R D F >
NO 4
01
02
title
creator
subj ect
description
publisher
contributor
date
type
format
identifier
source
language
relation
coverage
rights
AN
EXAMPLE
A n ex ample of some of the D ublin Core metadata in action would be the following. T his
code represents a hypothetical document on q uicksprout.com
<head profile="http://dublincore.org">
<title>T he N eil Patel G uide to D ublin C ore</title>
<link rel="schema.D C " href="http://purl.org/dc/elements/1.1/" />
<link rel="schema.D C T ER MS" href="http://purl.org/dc/terms/" />
<meta name="D C .I dentifier" schema="D C terms:UR I "
content="http://q uicksprout.com/fakeitems/dublincore/" />
<meta name="D C .F ormat" schema="D C terms:I MT " content="tex t/html" /> <meta
name="D C .T itle" x ml:lang="EN " content="D ublin C ore T utorial" />
<meta name="D C .C reator" content="N eil Patel" />
<meta name="D C .Subj ect" x ml:lang="EN " content="D ublin C ore Meta T ags" />
<meta name="D C .Publisher" content="I ' m K ind of a B ig D eal, L L C " />
<meta name="D C .Publisher.Address" content="neil@neilpatel.com" />
<meta name="D C .C ontributor" content="N eil Patel" />
<meta name="D C .D ate" scheme="I SO 8601" content="2012-06-01" />
<meta name="D C .T ype" content="tex t/html" />
<meta name="D C .D escription" x ml:lang="EN "
content="T his tutorial is a part of N eil Patel' s advanced SEO guide." />
<meta name="D C .I dentifier"
content="http://q uicksprout.com/fakeitems/dublincore/" />
<meta name="D C .R elation" content="Q uickSprout.com" scheme="I sPartO f" />
<meta name="D C .C overage" content="I ' m K ind O f A B ig D eal, L L C " />
<meta name="D C .R ights" content="C opyright 2012, N eil Patel, All rights
reserved." />
<meta name="D C .D ate.X -MetadataL astModified" scheme="I SO 8601"
content="2012-06-01" />
<meta name="D C .L anguage" scheme="dcterms:R F C 17 66" content="EN " />
BONUS: A DUBLIN CORE GENERATOR
If you have a webpage that already ex ists, try running it through this free D C generator.
http://www.u kol n .ac.u k/me tadata/dcdot/
N 5
O
T here are two methods to implementing rel=author for multiple author sites.
SIMPLE METHOD
W
ith this simple method, all you will need to do is point a link from each post to the
corresponding G oogle P rofile page, using rel=author.
STEP ONE
So let s say we have a blog with two posts: P ost A and P ost B . I wrote post A
B is a by a guest author. You will do as follows for each post
but P ost
G o to https://de v e l ope rs.googl e .com/+ /pl u gin s/b adge /pe rson al - con fig as before to
generate the code ( don t forge t to u se y ou r G oogl e P l u s I D ! ) . B ut this time, you re only
going to paste it into the individual posts you authored.
OPTION B: USE THE REL=AUTHOR TAG
< a hre f= " https://pl u s.googl e .com/1 0 9 4 1 2 2 5 7 2 3 7 8 7 4 8 6 1 2 0 2 ? re l = au thor" > N e il P ate l < /a>
T his again is the traditional rel=author tag. Substitute your name and G oogle P lus
P rofile ID and paste the code only in posts or pages you authored.
NEW ALTERNATE OPTION: USE THE SPECIAL PARAMETER LINK
< a hre f= https://pl u s.googl e .com/1 1 2 7 5 9 9 0 4 4 5 3 5 7 7 8 9 2 4 7 2 ? re l = au thor> + N e il P ate l < a/>
T his is the simplest way to link to your author profile. J ust put the above code
( pe rson al iz in g y ou r n ame an d l in k) only on the pages you authored.
POST B
You are going to repeat the above step, choosing whichever option is best for you. B ut
this time you are going to add the author link for each guest author on their posts.
POST B
You are going to repeat the above step, choosing whichever option is best for you. B ut
this time you are going to add the author link for each guest author on their posts.
OPTION A: THE GOOGLE PLUS BADGE
Cut and paste the G oogle P lus B adge code from
https://de v e l ope rs.googl e .com/+ /pl u gin s/b adge /pe rson al - con fig this time using the
tag of this style for a guest author might look something like;
< a hre f= " https://pl u s.googl e .com/1 0 0 6 1 3 0 6 0 1 1 9 6 9 5 6 3 7 2 1 3 ? re l = au thor" > G u e st A u thor< /a>
O nce you have done so for every page with a guest author, you are ready to move to step two.
STEP TWO
N ow, each author that can contributes to your site, must add
a link to your site in the contributor section of their G oogle
P lus profile. You can have as many links as you want in the
contributor section, so no matter how many sites you write
for, you can show you are the author.
T ake for ex ample Suj an P atel s profile, where he is a
contributor to three sites;
ADVANCED METHOD
STEP ONE
STEP TWO
A dd rel=
R emember how in the single author blog, you pointed a rel=author link to your
G oogle P lus P rofile. In the case of a multiple author blog, you re going to point
r e l = a u t h o r to your profile page on that website.
STEP THREE
STEP FOUR
B io/ P rofile
You should now be familiar with adding a link from your G oogle P lus P rofile back
to the site you contribute to.
T he important part in this last step, is that the link needs to go directly to your
bio/ profile page on the website you contribute to. T he link from my G oogle profile
pointing back to SE O moz would be;
http://www.se omoz .org/u se rs/profil e /3 6 1 1 3 7
NO 6
GOOGLE REL=AUTHOR
TAG IMPLEMENTATION
FOR SINGLE AUTHOR
T he concept with setting up your author profile is that you are basically putting a
link in two places. You re reciprocal linking from your website to your G oogle
profile. L ike this;
Every Page O n Your website ( r e l = a u t h o r )
G oogle Plus Profile ( contributor)
Your W
Its fairly simple to do, once you ve walked through the steps, but there are a few
options and specifics to know about.
STEP ONE
OPTION A
Install the G oogle Plus B adge on your site
https://de v e l ope rs.googl e .com/+ /pl u gin s/b adge /pe rson al - con fig
G rab the code as shown in the above snapshot and paste it where you want it on
your site. T his will usually go in a sidebar widget if you re running W ordP ress.
B e sure to use your G oogle P lus P rofile ID .
OPTION B
You can link from every page on your site to your G oogle P lus profile with the
rel=author attribute.
T his was the first method available when A uthor P rofiles first came out.
You need to link your name from every page of your blog to your G oogle profile.
In a content management setup like W ordP ress, this can easily be done via the
footer or sidebar widget if you have an about box with your name in it.
H ere s the code. Simply cut and paste it into the sidebar or footer;
< a hre f= " https://pl u s.googl e .com/1 0 9 4 1 2 2 5 7 2 3 7 8 7 4 8 6 1 2 0 2 ? re l = au thor" > N e il P ate l < /a>
STEP ONE
M ost people do not know about this new simple method to link your blog pages
back to your G oogle profile. It was introduced after the initial release of
rel=author as an easy way to implement the link without needing to edit H T M L .
F irst, be sure your author name appears on appear page of your site, and simply
turn it into the following link;
< a hre f= https://pl u s.googl e .com/1 1 2 7 5 9 9 0 4 4 5 3 5 7 7 8 9 2 4 7 2 ? re l = au thor> + N e il P ate l < a/>
N otice the plus in front of my name? T hat helps signal to G oogle that you are
using the special parameter at the end of the UR L . A nd again, you obviously want
to use your G oogle P lus P rofile UR L when doing this.
T his method replaces the need to use the re=author attribute or G oogle P lus badge.
W
hichever of the three methods you have chosen to use, now you are ready to
point your G oogle profile back to your site.
L ink B ack To Your S ite From Your G oogle Profile
STEP TWO
SEO PANDA
NO 7
ENTITY SEARCH
E ntity search is still very much in its earliest stages. O nly certain
types of people, websites or businesses will be able to utilize it, but
it won t be long until everyone can participate.
T his section will be one of j ust a few that talks a little bit more about
the concepts.
http://google.com/boston
G oogle hasn t been doing this long, but there is this thing called an implied site
search. You probably know what a normal site search is:
site:quicksprout.com outreach
About 6 results (0.12 seconds)
SEARCH
SEARCH
quicksprout outreach
About 8,950 results (0.12 seconds)
T he top six results are still all from q uicksprout.com - G oogle has
recognized q uicksprout the company as a business - an e n tity - and can
thus rewrite the search into a site search for the top results.
THE RELATED SEARCH OPERATOR
N ot many people use this, but check out the results for a related: search on
q uicksprout.com
related:quicksprout.com
About 90 results (0.20 seconds)
SEARCH
You can clearly see the association of q uicksprout having to do with the
topics of we b de v e l opme n t, b l oggin g an d an al y tics. T his is very much how
entity relationships work. T here are no significant keywords shared between
these site - yet they are seen as related to one another.
T o illustrate that this association to being an entity, doesn t apply to
everyone automatically, here s a related: search with no results
related:distilled.net
SEARCH
You also see some entity results in natural language search . T his would be
a search q uery that is a q uestion, a complete sentence or a very long- tail
description.
T ake what s the capital of florida? for ex ample
SEARCH
G oogle returns the answer to your q uestion. T his has nothing to do with
keywords and everything to do with the idea of F lorida being a state and
T allahassee being the capital of that state .
Is it becoming apparent that being viewed by G oogle as an entity could be a
very good thing? It gives you the possibilities of appearing in more places
around the web, and of boosting your authority.
T he nex t section will cover some specific ways you can get included in entity
based sources.
NO 8
T he last section taught you all about the importance of appearing like an entity to
G oogle and having as much related information tied to you as an entity as
possible. H ow do we make that happen? B y making sure you appear in F reebase.
H ere s the most ex tensive list I know of, for the places G oogle uses to get its entity
information.
ab c.state .v a.u s/P rice l ist/R U M _ (I M P O R T E D ). html
A dhe re n ts.com
A rX iv
B ase b al l A l man ac
B e rl in I n te rn ation al F il m F e stiv al
B ooks an d W rite rs kirj asto.sci.fi/
b orn rich.com
B oston .com
B u re au of L ab or S tatistics, U n e mpl oy me n t in U S
B u re au of L ab or S tatistics, U n e mpl oy me n t in U S C ou n tie s
B u re au of L ab or S tatistics, U n e mpl oy me n t in U S S tate s
C mara dos D e pu tados
ce l e b rity n e tworth.com
C e n te r for R e spon siv e P ol itics
C he fM oz
chickipe dia
C l au d B u tl e r
croctail .corpwatch.org/
C rore
C ru n chb ase .com
D atab ase
datab ase b aske tb al l .com
datab ase F ootb al l .com
D atab ase O l y mpics
D ay L ife .com
E -L IS
e n .citiZ E N diu m.org/wiki/
E n gl ish W ikipe dia
E u rostat, M in imu m W age in E u rope
e x pl ore dia.com
F ace b ook
F actu al
fame n e tworth.com
F D IC
F ood an d D ru g A dmin istration
F orb e s
F ran ce
F re e b ase
G E B C O U n de rse a F e atu re s G az e tte e r
G e ographic N ame s I n formation S y ste m
G e on ame s.org
G e rman W ikipe dia
G oogl e P l u s
H e al thcare C ost R e port I n formation S y ste m
https://prote cfu e l sav e r.com/die se l - fu e l - cl e an e r
https://prote cfu e l sav e r.com/gas- fu e l - cl e an e r
https://prote cfu e l sav e r.com/oil - sy ste m- re hab
https://prote cfu e l sav e r.com/P R O T E C - I n te rn al - E n gin e - C l e an e r
H u lu
I E S N C E S P u b l ic L ib rary S u rv e y
imdb .com
I n fochimps
I n stan tE n core
I n te rn e t M ov ie D atab ase
I n te rn e t S pe cu l ativ e F iction D atab ase
I n te rn e t S pe cu l ativ e F iction D atab ase
IS O 1 5 9 2 4
IT IS
L ib rary of C on gre ss
F reebase draws from all of the above places for data. If you are not in freebase,
this is how you can add yourself.
F
FR
RE
EE
EB
BA
AS
SE
E
N O T E : Please dont look at this like directory submission or a place to spam.
[1]
C reate an account
[5 ] W
H opefully by the end of this section you ve gained some in depth understanding of
how important things like schema and entity search are. A nd you ve helped make
your websites more future search friendly!
TAKE ME TO
CHAPTER TWO
TAKE ME TO
CHAPTER FOUR
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
04
CHAPTER 04
WORDPRESS
N 1
O
ADVANCED INDEXATION
FOR WORDPRESS SITES
(YOAST SEO)
Most people usually get the basics done well when settings up
WordPress. However, in this section were going to walk step
by step through all of the settings in Yoast SEO, and go over
exactly what you want to use them for and their most
common applications.
GENERAL SETTINGS
Title settings
you only need to check this box if for some
reason your title tag settings are not working
S ite- wide meta tags
you should typically only check of no- index
sub- pages of archives
Clean up the <head> - you usually don t need
to check these off.
P
PO
OS
ST
T T
TY
YP
PE
E S
SE
ET
TT
T II N
NG
GS
S
T his section is not only where you set up
title and description templates, but also
how you control index ation of these parts
of W ordP ress.
You D O want to let both pages and posts
get index ed. It is very rare to not index
these.
You do NO T usually want to index media.
TAXONOMIES
C ategories
you ll most often want to index these
Tags
more and more these should not be index ed. G oogle
doesn t return them as much in results as they used
to and it s always better to rank a page, post or
category instead.
Format
it s usually safe to leave this unchecked.
O
OT
TH
HE
ER
R
A uthor A rchives
it s best to NO T index these. A lso, if
you are running a single author blog
you should disable them. Users will
get redirected back to your home blog
page.
D ate A rchives
its also best to NO T index these, but
you should usually keep them
enabled. E nabled j ust means users can
browse posts by date.
X
XM
ML
L S
S II T
TE
EM
MA
AP
P S
SE
ET
TT
T II N
NG
GS
S
NO TE: B e sure you are N O T using another
X M L sitemap plugin or that your theme
does not have this functionality activated.
Ping
You can ping both yahoo and I
Ex clude Post Types
You should ex clude any you re not index ing.
P ut another way: che ck off the b ox e s of
page s y ou are n ot in de x in g.
C
CA
AT
TE
EG
GO
OR
RY
Y D
DE
ES
SC
CR
R II P
PT
T II O
ON
NS
S
In Yoast, you will have set up a template
to display a default category description
for the meta tag, like this:
C
CA
AT
TE
EG
GO
OR
RY
Y D
DE
ES
SC
CR
R II P
PT
T II O
ON
NS
S
In Yoast, you will have set up a template
to display a default category description
for the meta tag, like this:
E
ED
D II T
T .. H
HT
TA
AC
CC
CE
ES
SS
S F
F II L
LE
E
A lso, all of the .htaccess methods given
throughout this guide can be implemented within
Yoast SE O . You go to edit files and most often
your additional code will go at the bottom:
NO 2
SECURING WORDPRESS
{ }
\ ;
\ ;
[2]
B egin WordPress
L ike this;
#
R
B EG I N
WordPress
[3]
- [ F ,L ]
OPTION A
- [ F ,L ]
[3]
D id you know wp- config.php is where your username and password is installed?
If you used a one- click installation through your web host, you may have never
worked directly in the wp- config.php ( which you do on a manual install) .
OPTION A
M
OPTION B
NO 3
MAKING
WORDPRESS
COMMENT REPLY
LINKS NOFOLLOW
G o to appearance
editor
functions.php
NO 3
MAKING
WORDPRESS
COMMENT REPLY
LINKS NOFOLLOW
G o to appearance
editor
functions.php
add_ filter(
' comment_ reply_ link' , ' add_ nofollow_ to_ reply_ link'
) ;
It s the str_ replace( ) function which is replacing the default closing of the
anchor tag - and its appending the nofollow to it.
R emember to update the file.
NO 4
INTERNAL LINKING
WITH SEO SMART LINKS
B y now I m sure you know the importance of Internal L inking - that is how
you link from page to page within your own website. B ut what happens with
most blog posts? A s time goes by, they get further and further away from the
homepage and their linkj uice is buried. U n l e ss y ou con siste n tl y l in k to the m
from n e w posts an d page s.
T his part of the SE O guide is going to show you how to install, configure and
use the SE O Smart L inks plugin. ( M ore on ide n tify in g which page s y ou shou l d
l in k to b e l ow in # 2 4 - C rawl in g Y ou r S ite S cre amin g F rog.)
F or ex ample, in this post from A pril 9 th, 2 0 1 2 , I link back to a post from
D ecember 5 th, 2 0 1 1 .
ENTER SEO SMART LINKS PLUGIN.
L et s walk through a this plugin in detail. It
makes internal linking to older posts easy.
STEP ONE
STEP TWO
C onfigure
T his is where some people can get confused, and I am here to help you out :- )
N ex t, you ll want to add specific posts that should be linked to when specific
keywords appear ( pe rhaps the cool e st fe atu re of this pl u gin ) .
C ustom K eywords
P revent duplicate links
E nter the keywords and the UR L
E nter as many keywords as you d
like, comma separated
E nter the UR L you want those
keywords to link to.
D o this for e v e ry post you want
direct control over the links
LIMITS
ax L inks
ax S ingle
M
ax S ingle UR L s
1
1
EXTERNAL LINKS
Nofollow
this is n ot n e ce ssary to e n ab l e
NO 5
P eople have often asked me how to remove the date from displaying in a G oogle search
result when running on W ordP ress. It is often not desirable to have the date shown, as
in the ex ample below.
SEARCH
F
F II N
ND
D II N
NG
G A
AN
ND
D R
RE
EP
PL
LA
AC
C II N
NG
G T
TH
HE
E_
_T
T II M
ME
E (( )) F
FU
UN
NC
CT
T II O
ON
N
T he hardest part about this perhaps, is finding the right spot in your W ordP ress
setup to alter the code. T he function we re looking for is the_ time( ) .
T he three most common places you will the_ time( ) are;
archiv e .php
in de x .php
sin gl e .php
H
HO
OW
W T
TO
O S
SE
EA
AR
RC
CH
H Y
YO
OU
UR
R W
WO
OR
RD
DP
PR
RE
ES
SS
S F
F II L
LE
ES
S
[1]
[3] S earch multiple files with a tex t editor like Tex twrangler
[3] S earch multiple files with a tex t editor like Tex twrangler
G o to Search- > M ulti- F ile Search...
You will see a result listing all of the files that contain the_ time . These are
the files you should edit directly in the W ordPress editor.
j S, Y ' )
? >
j S, Y ' )
NO 6
CREATING A CUSTOM
WORDPRESS AUTHOR
BIO PAGE
T he default author archive in W ordP ress is j ust a list of all the posts by that
author. F or my site, you can see that my author page
http://www.q u icksprou t.com/au thor/admin / is simply as list of the posts I have
written, which I why I choose to not index it.
Custom author pages work best on multi- author blogs. If you are running a single
author site, simply having an about page may be the better option for you. So
this tutorial is going to assume you are running a multi- author site.
O ne - File S etup
Two - C urrent A uthor D etection
Three - R ough D raft
Four - V ariables
Five - Putting I t Together
File S etup
STEP TWO
get_ sidebar( )
STEP TWO
N ex t we have to put some code in to detect the current author - here s the code:
<? php
$ curauth = ( isset( $ _ G ET [ ' author_ name' ] ) ) ? get_ user_ by( ' slug' ,
$ author_ name) : get_ userdata( intval( $ author) ) ;
? >
STEP THREE
R ough D raft
STEP FOUR
V ariables
N ex t, based upon the info you d like to display, you can grab the variables
we ll need to build the code.
H ere s a list of all of the author variables:
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
$ cu
rau
rau
rau
rau
rau
rau
rau
rau
rau
rau
rau
rau
rau
rau
thththththththththththththth-
> aim;
> de scription ;
> displ ay _ n ame ;
> first_ n ame ;
> I D ;
> j ab b e r;
> l ast_ n ame ;
> n ickn ame ;
> u se r_ e mail ;
> u se r_ l ogin ;
> u se r_ n ice n ame ;
> u se r_ re giste re d;
> u se r_ u rl ;
> y im;
Putting I t Together
You j ust replace the actual name with the variable and the php wrapper. So
N eil P atel gets replaced with < ? php echo $ curauth- > nickname; ? > like this:
<h2>About: <? php echo $ curauth->nickname; ? ></h2>
T hen we re going to start the loop and get the posts in there
here s what the code looks like and some ex planation:
NO 7
NO 7
T here are several similarly named plugins, so when you choose it in the
plugin installer, make sure you choose the correct one;
O nce installed and activated there are a few tabs with important
settings, we re going to walk through the steps.
If you have trouble finding it, go to settings
P Super Cache
TA B ON E EAS Y
J ust like it says, this tab is easy ! A ll you need to do is turn on caching.
orking
A t this point, before continuing, you may want to check to see that caching is
working properly. You should also periodically visit your website during any
plugin setup and configuration to be sure it hasn t broken anything.
T o check caching
[1]
You have T W
The setting you see above are for a site that might get one update a day or just
a few a week. Set your timeout to 10 days (864000 seconds). Use the clock in
this instance, and set it to twice daily and at a time that makes sense for your
site. If you typically post new content in the evening, a time of 10:00 might
make sense - it will empty garbage just after youve posted your new content at
night, and do so once again at 10:00am to keep things clean.
DI S A B L I N G GARBAG E C OL L EC TION
If for whatever reason you want to disable garbage collection, enter ZERO for
the timeout.
NO 8
A lthough not totally hands on we re going to wrap up the W ordP ress section with
the most comprehensive list of valuable plugins I know of, that I personally know
work. T here are a lot of incomplete lists, or lists that contain sub- par plugins.
guide. No guarantees they will work by the time you read this :)
N ow you should have a super powered W ordP ress site! T his concludes the last
section of on- site optimization techniq ues. In the nex t section A dvanced D ata
R esearch we re going to begin our j ourney of off- site SE O techniq ues.
TAKE ME TO
CHAPTER THREE
TAKE ME TO
CHAPTER FIVE
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
05
CHAPTER 05
NO 1
hat is ImportX M L ? Import X M L is a way to retrieve information from file types such
as html, x ml, csv and more using x path.
T his can be incredibly useful for scraping and sourcing information off of websites, as
it imports it right into a G oogle D ocs Spreadsheet, and you can also run some advanced
searches to scrape information that would otherwise be hard to collect.
I m going to walk you through a few ex ample uses of ImportX M L
BASIC SYNTAX
ImportX M L is j ust like any other E x cel or G oogle D oc formula - it uses a pretty
straightforward syntax ;
=importX ML ( UR L , Q uery)
UR L = the url you will be scraping
Q uery = the x path q uery to run on the url
BASIC EXAMPLE
SCRAPING QUICKSPROUT FOR H1 TAGS
Create a new G oogle D oc Spreadsheet
BASIC EXAMPLE
SCRAPING QUICKSPROUT FOR H1 TAGS
Create a new G oogle D oc Spreadsheet
Set up your UR L
Create a basic x path function to grab the H 1 of the page. ( O b v iou sl y we cou l d do
this v ia S cre amin g F rog or othe rwise crawl in g the site b u t we re j u st u sin g
this as a simpl e e x ampl e )
A dd the importx ml function to cell B 2
Cool! W e ve got the H 1 of the post pulled right into G oogle D ocs. So let s get into
some useful ex amples of importx ml for G oogle D ocs.
NO 2
IMPORTXML
QUORA/TWITTER
STEP ONE
L et s use the blogging topic in this ex ample http://www.q u ora.com/B l oggin g/fol l owe rs
STEP TWO
I n C olumn A
STEP THREE
L et s break that down, so you understand and can create your own.
=importx ml( )
A2
//h2
/a
/@href
finally, this references only the links contained in the anchor tags
A s you can see, this returns a list of the top 2 0 users from the B logging T opic.
STEP FOUR
C reate Full UR L s
http://q uora.com
B 2
O nce you do that you need to grab and drag the formula down the rest of the
columns;
STEP FIVE
H ere s the function. Its a long one so we ll break it out piece by piece;
=I mportX ML ( C 2,"//div[ contains( @class,' profile_ action_ links_ section' ) ] //a[ contains
( @href,' twitter.com' ) ] /@href")
=importx ml( )
C 2
[ contains( ) ]
//div
_ links_ section )
//a[contains(@href,twitter.com)]
/@href
Dont forget to grab and drag the formula down through the rest of the columns;
And now you can instantly get lists of 20 Twitter
users at a time! This being a technical guide (a
How-To) its of course your decision how you can
use such a list, but Im sure you can think of many
applications :-)
NO 3
[1]
SCRAPING UBERSUGGEST
FOR KEYWORD IDEAS
[2] I n cell A 1, type in something that you want to q uery Ubersuggest for
In this ex ample, we typed in how to ... to start the q uery.
N 4
O
http://panda.com
<HTML>
<HEAD>
</HEAD>
</BR>
<BODY>
<H1>
C ome Up W
ith A
STEP ONE
G oogle S earches
T he type of results you re trying to get, is a list of possible sites you could get a
link from. L et s say you re a food blogger, and you want to find other blogs to
guest post on. You might do a search like;
food in u rl :b l og in titl e :su b mit post
food in u rl :b l og in titl e :con trib u te post
or you might get more specific with keywords;
gou rme t food in u rl :b l og in titl e :su b mit post
e cl e ctic de sse rts in u rl :b l og in titl e :su b mit post
W
hen you nail down a good search, you should see a number of potential sites
in the results as well as not too many results. F or ex ample;
SEARCH
e need to get all of those G oogle results into a tex t document to prep for
running through Screaming F rog.
[1]
G o to search settings
Set to 1 0 0 results per page
STEP THREE
[1]
In this case, this particular list only found one rel= author blog. B ut
that s ok! T hat s actually good. Imagine having to sift manually
through all of those results to find the one with authorship? N ow you
have one much more targeted prospect - and you can easily get many
more by running through this process.
NO 5
T his section covers using a tool that is paid. T here is a free version, but it
does not have all the features. You can probably try some of the things in
this section with the free version though. I am not affiliated with the tool
in any way.
B efore we start, go to - https://www.white spark.ca/l ocal - citation - fin de r/
R egister for your free or paid account.
01
SEARCH
(WITHOUT A PROJECT)
You should receive an email alert though when your report is ready:
Next, youre going to see a report like this. Click compare citations for these businesses
You can open up and save as an Excel file and were going to customize it
a little so you can easily see WHO has the most citations.
You can open up and save as an E x cel file and we re going to customize it
a little so you can easily see W H O has the most citations.
W
02
T he report you see will tell you all citation sources not tied to any
keyword. Its j ust a raw list.
Click on the little plus to see all pages with the citation
( u su al l y me an in g a phon e n u mb e r)
A nd you have a few more options when it comes to ex porting the data:
R e- run and append.......runs the same report again, ex cept adds in any N E W
results that weren t there before.
Ex port C S V ....................E x ports the data, but without individual UR L s, j ust the
name of the website
Ex port C S V
NO 6
HARVESTING
EMAIL ADDRESSES
01
GATHER URLS
I m going to assume you ll either have a list of prospect already, or ( with the he l p
of this gu ide ! ) you ll know how to get a list q uickly.
F or this ex ample, I m going to take a list of scraped G oogle UR L s let s say I
was a food blogger and wanted to submit recipes. I might use a search like:
recipe inurl:submit
recipe inurl:submit
About 147,000 results (0.24 seconds)
SEARCH
You can experiment with regular expressions (regex) to fine tune your results.
This expression;
^(Contact|About|Email|Submit)
will look for results that begin with the words contact, about, email or submit.
I also do not limit anchor text to number of words.
Click on the contact tab to get your results (you might have to wait a few
minutes for processing).
NO 7
SOCIAL LISTENING:
ADVANCED LISTENING
TO TWITTER
good search may have a few good results in the last 2 4 - 4 8 hours.
Fill out the search field if its just a simple search you can use plain text. But you
may need to use advanced operators.
She may only tweet about that once a year. B ut if you re trying to
connect with really high authority people, it will be worth creating an
IF T T T recipe to know when she needs help via tex t message;
A gain, twitter gives you the syntax for the search when you run it via the
T witter search page
H ere we ve added four streams for four different interior design type searches:
H ere we ve added four streams for four different interior design type searches:
T hen, you can set advanced settings to track tweets online from a certain
geographic location
hen you spot a tweet to respond to, you can do so right within M onitter
M O R E T WI TTE R TOOL S
T here are dozens of other tools to monitor T witter
http://ifttt.com
NO 8
BROWSER PLUGINS
B rowser plugins can greatly speed up your work flow and efficiency. I m going to show you
some plugins for G oogle Chrome, and a little bit about how to use them in more advanced
ways.
T his section of browser plugins revolves around the ones that help optimize your sites
accessibility and index ation.
F irst, here s the list.
B roken L ink C hecker
https://chrome .googl e .com/we b store /de tail /oj kcdipcgfae kb e ae l aapakgn j fl fgl f
W
eb D eveloper
http://chrispe de rick.com/work/we b - de v e l ope r/
R edirect Path C hecker
https://chrome .googl e .com/we b store /de tail /aomidfkchockcl dhb kggj okdkke b mdl l
S EO moz Toolbar
https://chrome .googl e .com/we b store /de tail /e akacpaij cpapn dcfffdgphdiccmpkn p
C hrome S niffer
https://chrome .googl e .com/we b store /de tail /homgcn aoacgigpkkl j j j e kpign b l ke ae
G oogle A nalytics D ebugger
https://chrome .googl e .com/we b store /de tail /j n kmfdil e e l hofj cij ame phohj e chhn a
M
ord C ount
https://chrome .googl e .com/we b store /de tail /kmn dj oipob j fj b hocpoe e j j imchn b j j e
S ource K it
https://chrome .googl e .com/we b store /de tail /iie e l dj dihkpoapgipfke oddj ckopgj g? hl = e n - U S
I m going to show you how to use some of these in an advanced way.
Wait for it to find the broken links in this case there are quite a few.
A great one to immediately notice is the resources page. Its often easier
to recreate resource content or otherwise use it to get some links.
CHROME SNIFFER
This plugin automatically shows you the CMS or script library a website uses.
Extremely handy if you are looking to reach out to only WordPress site owners,
for example.
As you browse the web, the icon to the far right of the URL will change to match
which CMS or library is being used.
For example, you can see that my site is built on WordPress
Here is a site built with Drupal
And then you can click on the icon and it will show you the redirect (or series
of redirects) that the browser took to get to a page.
A nd then you can click on the icon and it will show you the redirect ( or se rie s
of re dire cts) that the browser took to get to a page.
NO 9
W
USING A PROXY
prox y acts like the middle man between you and other servers. In other words,
they make you an on y mou s on the web. You appear to be using the IP address of
the prox y, and not yours. A nd this is perfect for rank checking if you use local
software like R ank T racker. R un too many automated G oogle searches to check
rankings from your location, and you run the risk of sending a red flag to
G oogle. N ote that some people use prox ies for less than ethical means, and I do
not recommend doing so. B ut it is a fantastic way to check your rankings without
sending unusual activity to G oogle from your IP address.
So how to you use a prox y? I have a simple but little known method for you to
find and check dozens of free prox y addresses all at once.
STEP ONE
ent. com
/p rox y/
You will see a list of free public
prox y IP addresses. T hese change
often, so be sure to refresh your
browser if you have had the
window open for a while.
STEP TWO
ain L ist
Select T ransfer G ood P rox ies to
M ain L ist under E x port . You
will then be left with a clean list
of working prox ies.
ain L ist
Select T ransfer G ood P rox ies to
M ain L ist under E x port . You
will then be left with a clean list
of working prox ies.
STEP FOUR
In R ank T racker, you can enter the prox y address like this:
Since the addresses to go bad after a while, you may want to retest your list
and/ or cut and paste more from http://www.rosin stru me n t.com/prox y /
BONUS:
WANT AN ALTERNATIVE TO A PROXY?
T he above method is free, which is the best part, but if you want something
more robust? You can get a V irtual P rivate Server ( V P S) . M ost web hosting
companies offer this. Its like having your own private dedicated IP address. It
may be a small monthly fee, but as something more robust than public prox ies,
it may be worth it for you!
I d be surprised if you re not an ex treme data collection ex pert now! B ut we re
not done! O n to some less- traveled paths to keyword research.
TAKE ME TO
CHAPTER FOUR
TAKE ME TO
CHAPTER SIX
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
06
CHAPTER 06
KEYWORD RESEARCH
You ve all used G oogle A dW ords keyword tool before right?
W e re not going to cover that here though. W e re going to
go beyond the common keyword research tools and ex plore
some less talked about ways to find the best keywords to
target for your site.
N 1
O
BEYOND GOOGLE
ADWORDS KEYWORD
RESEARCH
M any people get keyword data from A dW ords. B ut there s other sources of keywords
and search volume. W e re going to walk through a few of them now!
[1]
B ing
T he newer B ing keyword research tool, although still in development, is a good
place to check.
Sign in ( or cre ate an accou n t)
N ow, let s get a little more refined. Set the language to E nglish ( assu min g
that s y ou r targe t l an gu age ) and ex pand the date range to 6 months.
T his is going to give you a large data set to make good decisions:
[2] W
ordtracker and S EO
T hese versions are free. You can also register and pay for the pro versions.
R un the report in SE O
Use the overall daily estimates for measure potential traffic across the entire web:
[3] W
W
ordpot
ordpot is another source of keywords you may not have thought of.
G o to the bottom, click add all 1 0 0 and then click ex port to CSV
file of your choice
or the
NO 2
T he web collects data every day. D ata that people are actually typing
telling us what they are looking for.
they are
Search suggestions are a great place to look for words people are actually
typing. T his can often bring immediate content ideas as well as keyword
prospects. T he important part in this process is collecting as many ideas as
possible.
M any SE O s out there miss some of the most useful tools. L et s walk through
some now!
F irst, a list of suggest scrapers
http://www.u b e rsu gge st.com
http://soov l e .com/
http://tool s.se ob ook.com/ge n e ral /ke y word- in formation /
http://www.z u u l a.com/
http://www.ke y wordb u z z .n e t/
A ll are great ( the re s a l ot ou t the re on u b e rsu gge st) but I ll show you a few
tricks with Soovle and K eywordB uzz
SOOVLE
T here s two ways we re going to use Soovle. F irst, we re going to use it as a
general suggest scraper.
[1]
S et it is 15 engines. W
Scrape again
(or hit enter)
This will put true if the items are the same and false if they are different.
Then hover over the corner (wait for the cross to appear) and double click.
N
E
X
T
sort descending by column B
This should put all the TRUEs at the top. These are your duplicates.
Delete all the TRUE rows.
S OO VLE TO CATC H T R EN DS
N ex t, we ll use Soovle to capture trending keywords if you want to create q uickly
and catch a trend.
[1]
K E YW O R D BUZZ
I j ust want to show you one thing with keywordbuzz.net
other scrapers to do this.
First
NO 3
G oogle correlate is another not often talked about tool for keyword research,
especially seasonal trends. http://www.googl e .com/tre n ds/corre l ate /
H ere s an ex ample
You can see it gives us keywords where search volume across time has a strong
correlation. T his is a useful tool for ex ploring trends and coming up with some
outside of the box keyword ideas let s ex plore a few!
01
tip
ADDITIONAL
TOPIC IDEAS
L et s say you re a food blogger and you like to do an article on red wine every
once and awhile. W ouldn t you like to know some other topics you could attach
to red wine?
T he correlate result for red wine is:
02
tip
IDEAS BY
LOCATION
T his shows similar search patterns for poison oak and boat registration . B ut
let s get more targeted and get correlations for the location.
H ere you have people in the states of C onnecticut and S outh C arolina
interested in an A ntigua all inclusive vacation.
So what do you do?
You do a v acation giv e away to the A n tigu as for your customers from those
states at the time of year people begin having outdoor parties ( and buying grills) .
N 4
O
TRACKING INTERNAL
SITE SEARCH
T his especially works if you have a larger site ecommerce or a large editorial
site. You will have a lot of data to work with and many opportunities to learn
about how people are using your site and keyword ideas you d never think of
otherwise.
I m assuming you already have a search function in your site. I ll show you how
to set it up in analytics and use the data effectively.
STEP ONE
You re going to need the UR L parameter your site uses to track site search.
F or ex ample, the site I m demonstrating this on, looks like the following;
STEP TWO
S et I t Up in A nalytics
STEP THREE
I m going to show you how to best access this data for keyword research. W e re
going to do this within analytics but you can also ex port the data for further use.
First - V iew the site search keywords
If you ve never done this before, its best to zoom out at least six months.
e re going to apply a few different filters to the data. ( Y ou cou l d do this with
adv an ce d se gme n ts too for a more pe rman e n t fil te r) .
T his first filter says show me words that get searched more often but then
most people immediately leave my site. ( Y ou may hav e to pl ay with the
n u mb e rs spe cific to y ou r me trics) . T hese are the words you want to build new
content around.
O R you can do sort of the opposite. Say show me words that get searched a
lot but where people stay on the site. A gain, the ex act number will depend on
the behavior of people on your site.
STEP FOUR
Take A ction
E ither way, you ll have a list of keywords you can take immediate action on.
H ighl y se arche d words whe re pe opl e l e av e
NO 5
STEP ONE
File
STEP TWO
Simply copy and paste this code into your tex t editor
# ! /bin/bash
q =$ ( echo "$ 1" | sed ' s/ /% 20/g' )
curl -s "http://www.google.com/s? sugex p=pfwl&cp=15 &q =$ q " |
' s/\ [ /\ n\ [ /g' | cut -d' "' -f2 | tail -n +4
sed
STEP THREE
./suggest.sh "marketing"
j obs in wa
solutions
plan
solutions wa
j obs
strategies
drive
mix
internships
ac)
NO 6
T here s many tools available out there to run a keyword freq uency analysis. Some
are free, some are paid. B ut there may be reason and benefit to having the
control to run your own reports. I ll show you one way to do this!
STEP ONE
STEP TWO
R un the S cript
BY FILE
either by file or by UR L .
BY URL
bash keyword.report.sh
keyword.file.tx t
bash keyword.report.sh
http://q uicksprout.com
I bet you have a killer list of keywords and data now! N ow your site is fast, crawlable,
semantically correct, and you ve got the best keywords. T ime to target and create content that
will attract links while you sleep.
TAKE ME TO
CHAPTER FIVE
TAKE ME TO
CHAPTER SEVEN
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
07
CHAPTER 07
LINK BUILDING WITH CONTENT
I bet you ve heard time and time again by now, how important q uality
content is to attracting links, shares and of course traffic. T his section
spells out some step by step actions you can take to create your own
amazing content and also how to incorporate the right techniq ues
into that content so it performs even better.
F irst up, a step by step approach to creating a top list to attract links.
NO 1
A lthough this strategy isn t terribly new, there s also not many
resources detailing how to do this q uickly.
T o refresh, this techniq ue basically involves building a piece of content
that s a list of the top 1 0 , top 2 0 etc.. of something involving your
niche. E x amples across the web are:
http://www.de l ish.com/food/b e st- of- food- b l ogs
http://www.social me diae x amin e r.com/top- 1 0 - social - me dia- b l ogs- the - 2 0 1 2 - win n e rs/
http://www.we b de sign school sgu ide .com/l ib rary /top- 1 0 0 - b l ogs- for- smal l - b u sin e ss- cost- cu ttin
g- in spiration .html
N otice all of those resources have a good amount of back- links. B ut not all top lists do.
W hat are they doing right that others are not?
If you have a good sized follower list, first you re going to find those that you know
or are closely connected to with websites you could include on the list.
social strength =
content success.
social strength =
content success.
T hen we re j ust going to pull those into either a G oogle D oc or another spreadsheet to
mix with other bloggers.
A t this point you can sort by followers and add a follows me column since we re going
to be mix ing in non- followers.
You may need to broaden your search, but definitely start with it more specific like that.
T hen, using either the scrape for Chrome plugin or a pro followerwonk account
ex tract the data and add it to your spreadsheet
look for people with about 1 0 , 0 0 0 - 2 0 , 0 0 0 followers. T hey ll be the easiest to get
attention from and still carry good social weight.
N ow with your mix , you can choose a list of 1 0 - 2 0 people to feature in a T op F ood
B loggers list. Some of them will already be following you - they ll be so complimented
they ll definitely share the content and link to it. T his will help drive shares and links
so the higher level influencers see it.
TIPS
C reate a S eries - D on t j ust do this once! You ll get more attention by doing these list
annually, q uarterly or even monthly!
L et bloggers know ahead of time - Send them a q uick tweet or email to let them
approve the list before it publishes. If they know about it ahead of time they ll be more
likely to share when it does go live.
NO 2
NO 2
T his tutorial assumes you know the basics of creating a P D F so I ll show you a
huge checklist of things you should do but the specific process and order can
be up to you!
W
A uthor
S ubject
K eywords
u se 5 - 1 0 ke y words he re .
NO 3
LINK BUILDING
WITH IMAGES
STEP ONE
settings.
T his will ensure you have the highest q uality photo going into your iP hone.
Nex t
to q uickly upload them all to your computer, you can use a service like B ump
https://b u .mp/ - you upload photos from your iP hone to your computer simply by
bumping the spacebar with your phone.
N o matter how you upload them, use the highest file size and pix el size possible
iP hone calls this actual size .
Stay O rganized! A s you upload and store photos, categorize them
I suggest something simple like;
/ people
/ architecture
the
if photos of a city,
T his is a really easy way for them to give you credit, and a link, all at once.
STEP TWO
Find People W
SINGLE AUTHOR
CONTACT
DA
domain.com
name@domain.com
67
G+
FB
SHARES CIRCLES
545
3,200
RSS
READERS
LINK
PROFILE
300
(example spreadsheet)
with the fields meaning the following;
URL ........................ site youre prospecting
Single Author....... Y for single author, N for multi author
Contact.................. email address
DA.......................... SEOmoz domain authority
FB Shares.............. number of facebook shares on the homepage
G+ circles.............. number of circles the person or business is in
RSS readers.......... how many RSS readers the site has (if theres a feed)
Link profile........... 1 is poor, 2 is good, 3 is very good, 4 is exceptional
As we use the following resources, youre going to fill your spreadsheet with
sites and metrics.
So, lets get to actually finding people to reach out to!
Some tools to use;
https://followerwonk.com/
http://www.socialmention.com/
http://klout.com
http://www.google.com/blogsearch
http://topsy.com
http://amplicate.com/
http://zerply.com/
http://twtrland.com/
Lets run through an example of using followerwonk. You want to find bloggers
who dont have good photos. This is often bloggers who are more focused on
the writing like NOT photographers, artists, graphic designers or people
otherwise likely to have the photos covered.
A search like blogger writer is great because they blog, but may focus on
writing, and therefore be weak on photos.
A window will pop up and you can then send the data over to a new Google Doc
Using techniques like the above you can gather some pretty good lists fairly
quickly. Sort through your metrics to find the best bloggers to reach out to!
Use best practice outreach practices to make your contacts and help them use
better photos.
NO 4
CREATE A 3D JAVASCRIPT
PAGE OR MICROSITE WITH
HTML5 AND CSS3
I haven t seen many people doing this. W ith some open source
code from github you can make a 3 D presentation or landing
page. B ecause it s built with H T M L 5 and CSS3 , the content is
fully crawlable and index able.
H ere s where you ll find the code.
https://githu b .com/b artaz /impre ss.j s
STEP ONE
STEP TWO
STEP THREE
You can see the demo live here - http://b artaz .githu b .com/impre ss.j s/# /b ore d
E verything should be inside an impress < div>
I will show you some ways to use the functions so you can come up with your
own slideshow.
Lets look at all the possible ids classes and parameters for the slideshow.
FIELD
SINGLE AUTHOR
class=step slide
class=step
data-x
data-y
data-scale
data-rotate
data-z
footnote
data-rotate-x
data-rotate-y
Example 4 Rotation
<div id="its" class="step" data-x="850" data-y="3000" data-rotate="90"
data-scale="5">
<p>This is an example <strong>of rotation </strong> <br/>
caught mid turn <br/>
by the screen capture software!!<br/>
<i>(very slick)</i></p>
</div>
Ex ample 5
<div id="tiny" class="step" data-x ="2825 " data-y="2325 " data-z ="-3000"
data-rotate="300" data-scale="1">
<p>use <b>some fun</b> 3D elements</p>
</div>
T his element looks like it s being zoomed in from far away ( notice the big g it
sits inside of) .
Ex ample 6
3D
Tilting
You can copy the ex act ex amples above, and replace with your own content, or try
some layouts of your own.
T his section took the idea of creating link worthy content head on. B ut what about
some good ol link building tips and tricks? D on t worry! T he nex t section is filled
with fifteen special link building techniq ues. A pply them to your site and content
for some massive improvements to your performance in search.
TAKE ME TO
CHAPTER SIX
TAKE ME TO
CHAPTER EIGHT
THE ADVANCED
GUIDE TO
BY NEIL PATEL
SEO
AND
SUJAN PATEL
08
CHAPTER 08
NO 1
T his section is a list of some well know, and other lesser known sites where you can
easily get a followed link.
P lease note, I can not guarantee these sites will still all work. T hey did at the time
of creating this guide, but things do change q uickly.
http://9 ru l e s.com/
http://associate dcon te n t.com/
http://b arry wise .com
http://b ib son omy .com/
http://b l og.fib e rdre ams.com
http://b l og.ru ski.co.z a
http://B l oge n gage .com/b l ogge r
http://b l ogge ru n iv e rsity .b l ogspot.com
http://b l oggin gz oom.com/
http://b l ogoria.com/
http://b l u e hatse o.com
http://b l u e v e rse .com
http://b u mpz e e .com/
http://b u sin e ssfin an ce mag.com
http://b u z z marke tin gwithb l ogs.com
http://cl ipcl ip.com/
http://coran k.com/
http://cu rre n t.com/
http://cu rry b e t.n e t
http://de ardrmoz .com
http://digg.com/
http://kikol an i.com
http://kirtsy .com/
http://kthre ad.com
http://l il l ie amman n .com
http://l in gu isticsz on e .b l ogspot.com
http://l in kagogo.com/
http://l in ke din .com/
http://l in ks.org.au
http://me me stre ams.n e t/
http://miste r- won g.com/
http://mix x .com/
http://more e arn in gs.com
http://my b l ogl og.com/
http://my l in kv au l t.com/
http://n owpu b l ic.com/
http://O ddB l ogge r.com
http://phpcafe .n e t
http://pol y ge e k.com
http://poston fire .com/
http://pq in te rn e t.com
http://prope l l e r.com/
http://coran k.com/
http://cu rre n t.com/
http://cu rry b e t.n e t
http://de ardrmoz .com
http://digg.com/
http://dotcommogu l .n e t
http://e dopte r.com/
http://e x tre me j ohn .com
http://fl ickr.com/
http://googl e - adse n se - te mpl ate s.co.u k
http://graphicde sign b l og.co.u k
http://grav ity cu b e .n e t
http://grokdotcom.com
http://growsmartmain e .org
http://harry .su fe hmi.com
http://howtowake u pe arl y .com
http://I n cS u b .org
http://I n dian o.n e t
http://j u staddwate r.dk
http://phpcafe .n e t
http://pol y ge e k.com
http://poston fire .com/
http://pq in te rn e t.com
http://prope l l e r.com/
http://radpix e l s.com
http://ran domhacks.n e t
http://re al e state te stb l og.com
http://se ob y the se a.com
http://se ol u tion s.n e t
http://social me diapowe r.com
http://te chn orati.com/
http://the j u n gl e marke te r.com
http://u n common photographe rs.n e t
http://wal l pape rstop.com
http://wassu pb l og.com
http://we b l ogtool scol l e ction .com
http://wordpre ssmax .com
NO 2
and I fttt
:q
:q
:q
:q
u icksprou
u icksprou
u icksprou
u icksprou
t.com
t.com
t.com
t.com
- site
- site
- site
- site
:craz
:craz
:craz
:craz
y e gg.com
y e gg.com
y e gg.com
y e gg.com
- site
- site
- site
- site
:kissme
:kissme
:kissme
:kissme
trics.com
trics.com
trics.com
trics.com
V iew the alert and click the G oogle R eader link to open it in G oogle R eader
go to view details
Select SM S as the action and you ll receive a tex t when a new mention of
your brand happens!
You can also bookmark all mentions to D elicious when you receive a
mention online. You may want a catalog of them, or you may want to simply
go in and review them a week or two at a time.
Set your trigger as the R SS F eed and set up delicious as the action:
NO 3
USING SCRAPEBOX
FOR FAST WHITE HAT
BLOG COMMENTING
STEP ONE
You can click the E which will open an edit window, and you can
edit them right within ScrapeB ox .
NO 4
GETTING A LINK
FROM DMOZ
D M oz, as you may well know, has a lot of value because of its
high pagerank and its long history on the web.
B ut one thing you may not have heard, is D moz gets scraped
by many other sites so getting that link can also get your
link scraped and used elsewhere around the internet.
Choosing W
L ook for a relevant category with a lower number of links. T ravel seems to
have many that are over 1 0 0 , so we ll look for under 1 0 0 .
T hese two look promising.
With only 55 links the Specialty Travel: Family category would work very nicely.
If you want to access value very quickly for pages on the ODP you can use
opensiteexplorer.org and run a report of the internal pages.
[1]
Go to www.opensiteexplorer.org
SUBMITTING
Once your top two categories are chosen, heres the suggested process for submitting.
[1]
From the category page where you want the link click submit a URL
[b]
[2]
Wait 2 months.
[3]
If you havent received the link, submit to your second choice category.
[4]
[5]
If this still does not work after 8-12 months, you may want to try a third
category. Dont give up! You can get a link with some persistence and
patience.
NO 5
COMMENT LINKS
WITH DISQUIS
SEARCH
/ PA
SEARCH
B ON U S : RECENT LI NKS
[1]
SEARCH
A lso, create multiple alerts for the most immediate opportunity as it happens.
NO 6
STEP ONE
F or this style of link building you re going to need the following elements;
G oogle Q uery B ookmarklet
If you have access to all of the above we re all set to get started!
STEP TWO
You may need to test a few different q ueries before you hit upon that
goldmine. L et s say you re building links for a site in the travel industry,
specifically hotels. You want to build links from .edu s or .gov s.
You might try some q ueries like;
site:.edu intitle:"
site:.gov intitle:"
site:.edu intitle:"
site:.gov intitle:"
L ook for q ueries that have 2 0 0 - 5 0 0 0 results. T his means you ve got a
targeted set up results, not too large yet not too small.
STEP THREE
Ex tract UR L s
hen you ve got your q uery, then you need to ex tract the UR L s into your tex t editor.
[1]
STEP FOUR
ode
STEP FIVE
Ex amine The UR L s W
E x port T he R esults T o a CSV you can ex port the UR L s to save all for later
and keep a record of which ones you ve taken action on.
STEP SIX
D irectly within Screaming F rog, you can see the pages linking to broken
( 4 0 4 ) content.
hen you find a page relevant to your site, visit www.archive.org to see
what the broken page used to look like, and see if its a piece of content you
already have or can recreate.
R ecreate the Content and O utreach! !
NO 7
M any of you I m sure have used Infographics in your content and link
building strategies. H ave you make sure to include easy no- brainer cut and
paste H T M L ? H ere s how!
L et s use this infographic from K ISSM etrics H ow D o Colors A ffect
P urchases?
http://b l og.kissme trics.com/col or- psy chol ogy /
STEP ONE
S witch To HTM
ode
STEP TWO
STEP THREE
ain L ist
T he < tex tarea> wrapper is what displays the box in H T M L where the code will sit.
>
</tex tarea>
STEP FOUR
I mage reference and link to the image this places the actual
image on the page when your reader pastes the code on their
page. I n other words, it visually renders the image. B ut the
important part is getting the link and anchor tex t you want!
[2] Here s where you can get massive back- link value from the
infographic. You re putting your own link and anchor tex t in
the code.
H ere s the code from above;
<tex tarea rows="5 " cols="7 0" onC lick=select( ) >
<p>
<a
href="http://blog.kissmetrics.com/wp-content/uploads/2010/08/c
olor-purchases-sm.png">
<img
src="http://blog.kissmetrics.com/wp-content/uploads/2010/08/co
lor-purchases-sm.png" alt"how do colors affect purchases? " />
</a>
</p>
<p>
<a href="http://blog.kissmetrics.com/color-psychology/">C olor
Psychology I nfographic</a> by <a
href="http://www.kissmetrics.com/">K I SSmetrics</a>
</p>
</tex tarea>
D on t forget to change the links and image sources when using this code!
>
</tex tarea>
STEP FOUR
I mage reference and link to the image this places the actual
image on the page when your reader pastes the code on their
page. I n other words, it visually renders the image. B ut the
important part is getting the link and anchor tex t you want!
[2] Here s where you can get massive back- link value from the
infographic. You re putting your own link and anchor tex t in
the code.
H ere s the code from above;
<tex tarea rows="5 " cols="7 0" onC lick=select( ) >
<p>
<a
href="http://blog.kissmetrics.com/wp-content/uploads/2010/08/c
olor-purchases-sm.png">
<img
src="http://blog.kissmetrics.com/wp-content/uploads/2010/08/co
lor-purchases-sm.png" alt"how do colors affect purchases? " />
</a>
</p>
<p>
<a href="http://blog.kissmetrics.com/color-psychology/">C olor
Psychology I nfographic</a> by <a
href="http://www.kissmetrics.com/">K I SSmetrics</a>
</p>
</tex tarea>
D on t forget to change the links and image sources when using this code!
STEP FIVE
If you see all of the appropriate code in the tex t area box then you re all set!
NO 8
T his method works great, and is easy to do, but may depend on your aesthetic
preferences. A ll it takes is a simple yet overlooked modification of your
T witter profile.
G o to T witter and edit your profile.
A dd a UR L and twitter handle to your bio, like this;
G o to each individual T witter site. Create or claim your profile and you can
further optimize them for links!
NO 9
T ynt is a little used tool which gives you links a traffic as people copy and paste
content from your website onto places around the web.
[1] G o to www.tynt.com
[2] Fill out the form to sign up for free
[3] You will see some J avaS cript
Click customize
[7] Youll add a few custom settings in here to spice it up. Add your
Twitter and/or facebook profile. You can also choose whether the
title, URL or both for the link anchor text.
[8] Then save, and you will return to the main screen.
[9] Copy the JavaScript code to your clipboard
[10] Paste the code just before your closing </head> tag. For WordPress
users, this is going to be under Appearance->Editor->Header.php
(as shown).
[11] Then test your code installation with the code provided at the bottom.
NO 10
FINDING AN INCREDIBLY
LINK WORTHY DOMAIN
STEP ONE
C ollect S ome W
ords
e j ust want a raw list of about 2 0 - 3 0 words you like. L et s say you re a software
company selling productivity software. G o to the thesaurus and type productive
and productivity . F rom that, we get ( the b e st on e s) :
prolific
inventive
creative
useful
fruitful
effective
efficiency
work rate
output
yield
helpful
T hen think of a word that describes your company with an image, a n ou n . M any a
productivity product might make you think of machines type machine into the
thesaurus:
appliance
device
engine
tool
automation
N ow we have some words! L et s put them to use.
S T E P T W O Use B ustaname to check for domains
T hen you re going to take your list of words from step one and paste them in:
A nd you can see the results show up in lists
and available domains.
R ollover the list of more word ideas to add.
STEP THREE
aker
O n the same website, there s also a tool called D omain M aker . Some basic
settings for this as well:
D efinitely ex periment with the settings and words to get some great domain
name ideas.
R emember we talked about keep your name
uniq ue? You might want to find a domain name
where the .com .org .net and even .biz are all
available. T hat way you can purchase all of them
to protect the brand.
STEP FOUR
NO 11
R un an A dvanced S earch
intex t:q uicksprout.com - site:q uicksprout.com works as a starting point.
In the case of a larger site, you may want to narrow your search some
more. T ry filtering for past year and order by date . You ll have the
most success with the most recent mentions.
intext:quicksprout.com -site:quicksprout.com
T hen, once the results start looking good on screen, ex port the UR L s using the
SE R P s redux bookmarklet mentioned throughout this guide.
Copy and paste results into your tex t editor
R un the spider
You may get a few duds, but this one looks promising already
NO 12
You re pretty familiar with the idea of building links to your site at this point? I would
hope so! T here s a certain benefit to building links to other sites as well - if applied
right. It can be done in white hat ways and not so white hat ways. W e re going to
focus on white hat.
THE CONCEPT
F irst, you need to be running a website with traceable conversions. P erhaps you re
selling an ebook or other a W ordP ress theme, or perhaps you have goals like email
sign ups. E ither way, you can single out an ex act page that drives these conversions.
T hen, you need to identify referral visits to that page which have a high conversion
rate.
L astly, you re going to build that referring page up in rankings, by building second
level links to it.
HOW TO DO IT
STEP ONE
T his should be pretty easy for most of you. F or ex ample, on Q uickSprout, this is one
of them
http://n e il pate l .com/? u tm_ sou rce = side b ar& u tm_ me diu m= michae l arrin gton & u tm_ campaign = ads
N otice the trackin g U R L s that al so he l p te l l me e x actl y whe re the sou rce of traffic is from.
STEP TWO
Use your analytics software to segment your traffic and identify ex ternal pages
that send higher than normal converting traffic to your landing page.
F or ex ample, let s say this article on Search E ngine J ournal sends high
converting referral traffic:
http://www.se arche n gin e j ou rn al .com/b ran d- n ame - se o- titl e - tags/1 0 2 6 9 /
STEP THREE
T he goal of linking to this second level page is to get it to rank higher and thus drive
more referral traffic back to your site.
It s about brand names in titles tags
good benchmark:
brand name in title tag
SEARCH
A s you can see, the SE J page ranks # 3 for this term currently, and improvement to
the 2 nd or 1 st spot would certainly drive more traffic to is, thus more traffic to my
landing page.
T hen, using all the superstar link building methods at your disposal, go out and build
your links j ust like you normally would!
NO 13
SECOND LEVEL
LINK PROSPECTING
Suppose you run a fashion website maybe you d want a link from
elle.com or vogue.com? T his may come in due time. B ut how can you
still take advantage of their linking authority sooner?
G et links from sites they link down to. H ere s a really fast way to
find your prospects.
[1]
SEARCH
You need Screaming Frog to crawl external sites one level away from the core list.
set search depth to 1
check external links
crawl external nofollowed links
Then youre going to end up with a list like this;
NO 14
PERFORM A BACK
LINK AUDIT
01
COLLECTING
YOUR LINK DATA
SE O moz s O pen Site E x plorer www.ope n site e x pl ore r.org is know to be the most
comprehensive and data- rich source of link info on the web. M ost of the features
shown in this tutorial are available as a paid SE O moz member, but you can still
access many of them with a free membership.
[1]
R eports
INBOUND LINKS
Start by entering your site and hit search. T he inbound link report is the
default report, but we have to tweak it a bit.
Download your CSV. You may have to wait a few minutes if OSE is busy.
TOP PAGES
LINKING DOMAINS
For the linking domains report, we
just want to filter for Pages on
this root domain to get all linking
domain information for the entire
site.
Hit filter and export to CSV.
ANCHOR TEXT
Next and lastly were going to run
the anchor text report for the site.
Leave anchor text set to phrases
Show links for all pages on this
root domain
Hit filter and export your reports.
You see them all at the bottom of the browser, and to the right you see where it
says show all? Click show all and you can then open all four.
Get all four CSVs opened up with Microsoft Excel.
Drag the tab of each CSV sheet over to the new Excel document. So you will be
dragging four tabs over to the new excel sheet.
When theyre all brought over, it should look something like this.
Freeze Panes
Select cell A2
G o to W
indow
F reeze P anes
N ow the top row ( ou r he ade r) will stay put when we scroll.
D o
B
E
F
You should now have an ex cel document with four sheets of O SE data ready to ex plore!
MAJESTIC SEO
A lthough not as data- rich as O pen Site E x plorer, M aj estic SE O s index is very fresh,
and you can see historic data as well, which can be very useful for certain types of
analysis.
L et s check it out free a free account ( y ou mu st cre ate an accou n t an d l ogin , b u t y ou
don t n e e d to pay ) .
E nter your site:
T he first thing to be sure of is if you want to look at historic index or fresh index :
If you own the site you can create a fre e report ( othe rwise y ou hav e to pay )
Although the paid version gets you more data theres still a lot you can gather
with the free version.
For example, go to the top pages report:
You should already have the top pages report from Majestic. Create one again
for OSE if you dont have a recent one:
Export to csv and open in excel and were going to combine the two csvs into
one sheet:
When doing the vlookup the two comparison columns have to be exactly the
hen doing the vlookup the two comparison columns have to be ex actly the
same. You may notice M aj estic ex ports without slashes at the end of the UR L
and O SE has slashes.
R emove these with a regular ex pression find and replace in your tex t editor:
rangler
Fill these all the way across and youll have a great mashup of Majestic
and OSE data to analyze!
Fill these all the way across and youll have a great mashup of Majestic
and OSE data to analyze!
F ollow the link in the email to view your report. T here are two basic
types of reports you will see - link type and anchor tex t.
NO 15
SCALABLE OUTREACH
THE TOOLS
G mail C an n e d R e spon se s
R apportiv e
B oome ran g
T ou t
B u z z S tre am
T han kT han kN ote s
S e n d an d A rchiv e
F ol l owU pT he n
T hen, to start setting them up, start a new draft. Clear it of any signatures
it needs to be completely blank.
P ut a draft of a common outreach type email in there.
USE FOLLOWUPTHEN
http://fol l owu pthe n .com/ is a newer tool. Its like B oomerang but with a lot more features.
ith the paid pro version you can even receive reminders via tex t message and
calendars, although we ll j ust cover the free version here.
S end an automatic reminder to the recipient
CC: E ntering the special address in the cc: field means b oth you and the recipient will
get the reminder.
3 days@
ow! You ve made it so far and by now you must be flooded with traffic. W e ve got
one more section to go, and this is search verticals . D ealing with video, image, or
local? T his section is for you!
TAKE ME TO
CHAPTER SEVEN
TAKE ME TO
CHAPTER NINE
THE ADVANCED
GUIDE TO
SEO
09
CHAPTER 09
SEARCH VERTICALS
If you operate in a search vertical, you re in a uniq ue place to
capitalize on some great traffic. T hese areas are not as often talked
about in SE O , but you can capture some high converting targeted
traffic in these areas.
W
NO 1
MOBILE FRIENDLY
SITES CSS
File
STEP ONE
[a] You re going to start out with this line of code, which normally appears
in the header.
<link rel="stylesheet" type="tex t/css" media="all" href="" />
N ote that the href portion is empty. T his is where we re going to add a bit of
P H P .
[b] Here s the PHP;
<? php
if( preg_ match(
ne| android) /i'
echo "* * L I N K T
}
else {
echo "* * L I N K T
}
? >
N O N
MO B I L E C SS F I L E* * ";
T his P H P code is a basic if/ then - if it detects a mobile browser it will serve the
mobile CSS file ( which we l l cre ate in the n e x t ste p) . if not ( e l se ) it will serve the
normal CSS file.
[c]
Copy and paste the above code into your header.php file ( or simil ar l ocation
de pe n din g on C M S ) .
B e sure to replace L IN K
STEP TWO
T O
C reate a Uniq ue M
obile C S S
File
NO 2
OPTIMIZING ONLINE
SLIDESHOWS
T here s several things you can do to rank well for slideshows generate visits
to your slideshow content, and possibly some referral traffic to your site.
[1]
hen you first upload your slides, the title field becomes the < title> tag
and the UR L . B e sure to get your target keywords in there.
R and s title is uniq ue but still has the keywords inbound marketing for startups
You can see it ends up in the title and UR L - and the length is ideal.
You can see it ends up in the title and UR L - and the length is ideal.
[3] M
ebsite
H ere you can see that R and has also embedded the slideshow into
SE O moz s blog.
T hey are not as used but sometimes this will allow you to stand out more.
NO 3
L et s talk YouTube
you referral traffic.
how to get tons of eyes on your videos which will then send
A lso, you may be tempted to use less than awesome content to get your accounts
filled with videos. It s always better in the long run to use the highest q uality
content possible.
I ll call these parts because you can do these in many orders.
01
MAKE SEVERAL
ACCOUNTS
02
M ake 3 - 4 videos that present the main point of the website you re trying to
promote.
K eep them high q uality and short. 1 - 3 minutes is best.
ALTER THE
VIDEOS SLIGHTLY
(1 FOR EACH ACCOUNT)
03
ALTER THE
VIDEOS SLIGHTLY
(1 FOR EACH ACCOUNT)
N ex t - you re going to be posting the same video across several accounts. So you ll
want to alter them slightly so YouT ube s auto detection doesn t pick them up as
being the same and flag your account. You can alter them in several ways;
chan ge
chan ge
sl ightl y
chan ge
the mu sic
the b ackgrou n d col or
chan ge the timin g ( this way y ou l l al so ge t a diffe re n t pre v ie w image )
the col or of an y caption s y ou may hav e
04
UPLOAD
hen you re ready, upload the slightly different videos across all accounts. O nly
use the same video on up to 3 accounts.
So if you have seven accounts and 4 videos, spread them across the seven accounts.
Use an optimized title, description and tags
practice optimization.
Consider a tasteful clickable link also overlaid onto the video itself.
Transcribe your video ( Y ou T u b e s au to- tran scription is u su al l y pre tty b ad
make y ou r own an d u pl oad it)
T o Upload A
[1]
T ranscription
05
INCLUDE YOUR
REFERRAL LINK
hen including your referral link, it goes in the description. F ollow the following
guidelines;
P ut it first. O therwise it will get buried and the user may not see it.
Include the full http:// - this way it becomes clickable and active nofollow link.
Use the G oogle UR L B uilder
If linking to a deeper page within your site, use best practice UR L construction
and have keywords and descriptive words in the UR L .
06
INCREASE VIEW
COUNT EARLY
I will always advocate organic and natural marketing. I do not promote the actual
use of the following websites. B ut they ex ist, and the choice is yours.
T hese free services will help you increase view- count q uickly, which is an important
factor in YouT ube ranking.
http://v age x .com/
http://v ie w2 .b e
http://e n han ce v ie ws.n e t
http://u 2 b v ie ws.com/
You of course should ex ercise all natural and long- term methods of getting eyes on
your videos before falling back to less than honest options.
07
OTHER YOUTUBE
RANKING FACTORS
F av orite s
C omme n tin g
S harin g
T hu mb s U p
S u b scrib e rs
E x te rn al L in ks to Y ou r P age /V ide os
Find another video similar to yours that has a high number of views
and ranks well.
[2] Use their title, description & tags and alter them slightly to fit your
video.
[3] Post your video
[4] THEN get people to comment on your video and the one you used for
the draft of your title and description. YouTube will see a connection
in content and hopefully value: it will associate the highly viewed
video with your new video and rank it higher.
A lso, if you embed a video on your website do not let it autoplay. N ot only do users
find this annoying, but N O N E of the views from the embedded version will count
towards total view count.
NO 4
LOCAL SEARCH
TECHNIQUES
hile many local SE O guides give you the usual tips, like keeping a
consistent N A P across listings, or increasing the number of citations
you receive we re going to assume you re familiar with the basics.
TIP [1] W
TIP [2] W
T I P [ 3 ] Upload or correct your listings with G P S data services. T here are a few of
TELEATLAS
Its a very similar process for teleatlas
If we were to make an hCard for the pizza place in Seattle it would look
something like this:
<div class="vcard">
<a class="fn org url" http://www.piecoras.com/">Piecoras</a>
<div class="adr">
<span class="type">Work</span>:
<div class="street-address">1401 East Madison Street</div>
<span class="locality">Seattle</span>,
<abbr class="region" title="Washington">WA</abbr>
<span class="postal-code">98101</span>
<div class="country-name">USA</div>
</div>
<div class="tel">
<span class="type">Work</span> +206-322-9411
</div>
<div>Email:
<span class="email">info@piecoras.com</span>
</div>
</div>
You can use that as a basic template to create your own hCard.
INSTALLING THE
FACEBOOK OPEN GRAPH
R emember, this is an in depth technical guide. M ost websites do not fully integrate
the F acebook like button into their website. W e re going to get very in depth and
walk through the complete installation of the like button, which includes creating
a basic app account as well as installing the open graph meta tags.
F or the sake of this guide, we re going to assume you understand the benefits of a
complete integration of the like button within your website. F or a full ex planation
from F acebook, you can read their documentation
http://de v e l ope rs.face b ook.com/docs/re fe re n ce /pl u gin s/l ike /
C reate a Facebook A pp I D
P lease note for this entire section, you need to be logged into F acebook. :- )
STEP ONE
C reate A
Facebook A pp I D
G o to the apps for F acebook page and click create a new app .
https://de v e l ope rs.face b ook.com/apps/
H ere, you re going to fill in some basic information to create your app. W
doing this to get an A pp I D # .
You can fill in your website name for the A pp name. Click continue
# .
e re only
NO 5
T hen complete the form where shows and save changes. You re done with the A pp
step, and ready to get your like button code!
T he forms for the like button and open graph can be found here;
http://de v e l ope rs.face b ook.com/docs/re fe re n ce /pl u gin s/l ike /
T he first thing we re going to do is get the code for the like button, which is
ex tremely simple.
O nce you click get code the following window is going to pop up.
B ecause ( at the time I m writin g this) W ordP ress is not fully H T M L 5 compliant,
you ll want to select X F B M L format. M ost of you are probably using W ordP ress,
and that s currently the best way to go.
B e sure to select the correct A pp I D
y ou cre ate d in the prior ste p) .
A ll we re doing here is copying and pasting all three sections of the code and saving
them in your tex t editor ( al on g with y ou r A pp I D ) for later.
e ve got our code saved, time to get the O pen G raph tags!
STEP THREE
Select the type of your website from the dropdown. E nter your site
name.
A nd remember the A pp ID
paste that into A dmin .
STEP FOUR
A gain, I m assuming most of us are using W ordP ress. W e need to put that
first big chunk of code j ust below the opening < body> tag. F or most of us
in W ordP ress, this is going to happen in the E ditor
header.php file
So first go to A ppearance
editor
A nd copy the first chunk of code and paste it j ust below the <body> tag.
N ex t, we re going to paste the second bit of code in the <html> tag. F acebook s
documentation says this is to enable compatibility in some versions of Internet
E x plorer.
T he third and final piece code is the actual like button itself. E verything else so
far has been additional code that helps the like button out.
O n Q uickSprout, I have my like button in the right- hand sidebar.
ordP ress. So
D epending upon your theme, you re likely going to have a sidebar called right
D epending upon your theme, you re likely going to have a sidebar called right
sidebar or post sidebar or pages sidebar . B asically, you ll want to follow
these steps for every widget needed to place the button on the pages desired. F or
some of you, this will be j ust one sidebar spot, while for others, it may be 2 or 3 .
D rag and drop the T ex t box from available widgets . T he tex t box allows you
to insert or write anything with H T M L etc into it. Its a great all purpose widget,
and perfect for our like button code.
You can fill in a title, which will give the tex t area a
heading if you d like.
You re going to take the third portion of the like button code, and copy and paste
it into the T ex t widget.
You can of course place other elements in the tex t box if you d like
buttons, P interest etc
STEP FIVE
T weet
T he last step is the most technical. B ut you ve made it this far, so don t give up!
T he benefit you will receive from having a complete O pen G raph installation is
very worth it!
Since we ll be integrating a little P H P , let s first move the open graph code to a
new file and re n ame it with a .php fil e e x te n sion . W e won t be using this file, but
this way we ll be able to see the code better, as your tex t editor should color it to
match the syntax .
D on t get scared! W e re mainly j ust going to be cutting and pasting to complete
your open graph tags, which will then get placed in the W ordP ress header.php
file.
Paste your title tag code in between the quotes of your title
property in the open graph tags, like this;
This is the Yoast title tag code pasted into the title property of the open graph
tag.
[2] Next, we have to fill in the URL property. Were going to
dynamically insert the URL of the current page into this field.
For this, were going to use this little code snippet;
<?php echo $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI] ?>
Cut and paste that code straight into the URL property of the open graph tags.
[3] Next, even though Facebook tells you not to leave the image field
blank, were going to do so. Why? Because the person sharing your
content will (in most cases) be given the option to choose the image
they would prefer to display.
ith that, your facebook open graph tags are ready to go!
[6 ] Paste the entire open graph code into the < head>
of your website.
hile this last step isn t req uired, it s there as a tool in case you feel like
testing your installation. I recommend also viewing source on your
site, and have a look at the open graph code to see if everything looks
right by eye.
T o get to the debugger, you go
to:
http://de v e l ope rs.face b ook.com
/tool s/de b u g
NO 6
CREATE CLICK
TO TWEETS
ays T o
STEP TWO
[1]
" Seventy- two percent of power users publish a blog post once a
month."
http://b it.l y /J l M cW i < - - bitly link
L ink
A uthor via @ neilpatel
A nd we get:
Seventy- two percent of power users publish a blog post once a month."
http:/ / bit.ly/ J lM cW i via @ neilpatel
STEP THREE
You can also make the q uote itself tweetable, depending on how you want to
display it, like this;
<li><a href="http://clicktotweet.com/tL 7 9h">Seventy-two percent of
power users publish a blog post once a month.</a></li>
NO 7
DETECTING IF USERS
ARE LOGGED INTO
SOCIAL NETWORKS
T he following code will allow you to detect if users are logged into
T witter, G oogle P lus or G oogle, directly in your website. F or facebook
you can do this via A P I, but for these other networks you need a
special workaround.
It will then allow you to display content differently depending on
which social network they are logged into. T he choice is up to you!
I would simply advise to keep users privacy in mind and not do
anything that might cause them concern. I would also note that this
code is dependent upon third party sources and it could break at any
time. T his might seem similar to other methods that have been
around for a while, but I ve worked out my own version if it for you.
STEP ONE
A dd C ode To Header
F or this ex ample, we re j ust going to set up an html document with our tex t editor.
T his will show you the functionality, and then you may use in any specific situation
you wish.
Put this in the < head>
section.
NOTE: If youre using
WordPress you can paste
this into the header.php file
if ( status)
$ (
into <span class=' red' >"
} else{
$ (
logged into <span class='
}
}
</script>
STEP TWO
HTM
T he portion shown in red is the important part. It is the id s and classes which
display if the user is logged in or not.
H ere is the code;
<div class="container">
<section>
<div class="row">
<div class="page-header">
<h1>D etecting Social N etworks L ogged I nto</h1>
</div>
<p>Y ou can see below it is detecting if I
T witter, G oogle or G oogle Plus.</p>
am logged into
STEP THREE
This code works by calling for an image (but not actually displaying that
image). If the user is logged in, it returns true. If not logged in, it returns
false.
Here is the final output!
NO 8
INSTALLING GOOGLE
PLUS BADGES
N avigate to your G oogle P lus profile page http://pl u s.googl e .com/ and log
in. In the UR L you will find your profile ID . F or ex ample, my page is;
STEP ONE
G o here
https://de v e l ope rs.googl e .com/+ /pl u gin s/b adge /pe rson al - con fig
to the G oogle B adge page, but it might confuse you more then help you.
T his is why I recommend heading straight to the P rofile Config T ool here
https://de v e l ope rs.googl e .com/+ /pl u gin s/b adge /pe rson al - con fig
O n this page, you can easily generate everything you need to add the G oogle
P lus B adge to your site.
STEP TWO
R emember your profile ID we found a few minutes ago? T hat s what you
should paste into the box as shown here;
M ake sure you see the check mark and looks good nex t to the ID .
Select badge and your language.
ADVANCED OPTIONS
Google does not make this apparent, but you actually have some different
display options.
Option A - Display Your Name
I found that playing with the width,
260 looked the best, as it was the
smallest size I could make the badge
and have it keep my name.
of every page
[2] The actual button code, which goes in the < body>
wherever you want the button to appear.
of the HTM
L et s add them!
A gain ( as we v e don e man y time s in the docu me n t! ) navigate to
appearance- > editor in W ordP ress and then find your header.php file.
STEP THREE
I know that I have this area being managed with my widgets, so I would go
to the widgets within W ordP ress to add the code. H ere s how you do it.
N avigate to appearance
widgets
E ither use an ex isting tex t widget or create a new one, depending upon
where you need to place the button.
P aste the code within your tex t widget;
CONCLUSION
Congratulations if you ve made it to the end and been able to implement
the techniq ues in this guide! SE O can sometimes be hard work but very
rewarding. If you ve done most of the things in this guide, on top of
creating ex ceptional content and interacting on social networks, you ve
been working really hard, but it will all pay off!
TAKE ME TO
CHAPTER EIGHT