Tag Archives: Google

Canonical URL SEO issue & How you can fix URL Canonicalization?

Canonical issue is a common issue that websites are facing. Due to the this many informative websites are not performing well in search engine results page.

 

Ranking top in search engine always depends on the quality of information a website is providing, how the site is optimized & the back-links along with the content language and it’s uniqueness.Still any site is not performing well in search engine then there must be some issues like canonical, blacklisted IP etc.

 

What is canonical issue?

For example if you have the website
http://www.yourwebsite.com

 

and then the index page can be also accessible by these URLs:

http://www.yourwebsite.com
http://www.yourwebsite.com/index.html
http://www.yourwebsite.com/index.php
http://yourwebsite.com/index
http://yourwebsite.com

In these cases all the pages are same at user end, means the user will found the same page information at each URL. But search engine crawler treats these pages as different pages. So the crawler will treat it like different pages.

 

Everything the title, meta tags, content etc are same on these pages. So the search engines will consider it as a case of content duplicate and the search engine will consider the site pages as spam and it can de-index your page and affect the search result page in short the Site Ranking decreases.

 

How to can you solve URL canonical issues ?

We can solve this issue by redirecting all these URLs to a single URL permanently(301 Redirect).
By uploading a .htaccess file we can easily redirect all the URLs.

 

1.Code to redirect non www domain (http://yourwebsite.com/) to www domain (http://www.yourwebsite.com/) permanently (301):

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourwebsite\.com
RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [R=301,L]

 

2.Code is to redirect index.html to http://www.yourwebsite.com/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]

 

3.Code is to redirect index.php to http://www.yourwebsite.com/

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*folder/index\.php\ HTTP/
RewriteRule ^(.*)folder/index\.php$ /folder/$1 [R=301,L]

 

After adding these rules in .htaccess file we just need to upload it to the root folder of the website.

 

Facebook Twitter and Google plus share and Like Button

Now a days in very busy life and in internet edge, social website play a very important role in friendship and social work and sharing views and idea, wishing Birthday and Anniversary.

 

Social websites now provide various API that can be implemented in websites(personal or commercial), It will provide live-streaming, sharing links etc.

 

Facebook twitter and Google plus along with LinkedIn provide us like/share button API, by implementing it, it will show a button on your webpage, the Like button lets a user share the page content with friends on social websites. When the user clicks the Like button on site, a related story appears in the user’s friends’ News Feed with a link back to website (from where a user clicked button).

 

This means when a user clicks a Like button on your page, a connection is made between webpage page and the user.

 

Facebook Like

There are two ways to Facebook Like button implementations.One is XFBML and second one is Iframe.

The XFBML dynamically re-sizes button’s height according to whether there are profile pictures to display,gives the ability to know in real time when a user clicks the Like button, and it gives the user the ability to add an optional comment to the like.

 
XFBML
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
 
IFRAME
<iframe src="//www.facebook.com/plugins/like.php?href=<?=urlencode($yourpageurl)?>&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>

 

Twitter Share

<a href="https://twitter.com/share" data-url="<?=$yourpageurl?>" data-count="horizontal">Tweet</a>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>

 

Google plus Share

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<div class="g-plusone" data-size="medium"></div>

These are the basic code, There are so many options available on these button, a compete implementation guide available here.

 
 

Add Google web tracking code & Analyze your website performance using Google Analytics

If the website owner want to know the complete details about the site visitors and want to view the statistics about visits, then a free solution provided by google named as Google Analytics.
It generates detailed statistics about the visitors to a website.

 

It is the widely used websites.GA (Google Analytics) can track visitors from all referrers, including search engines, display advertising, pay-per-click networks, e-mail marketing and digital collateral such as links within PDF documents also.

and It is very easy to go, you can integrate the google analytics code in your website.

 

Login in into Google Analytics by your gmail account or sign-up if you don’t have.

http://www.google.com/analytics/

  1. You will then reach at overview page.
  2. Select the account that has the profile for the tracking code you’re looking for, as the code is profile-specific (you can create multiple profile with your single gmail account,means no need to create different gmail account for your other websites).
  3. Select the profile from the accounts Overview page by the drop down given in the top bar.
  4. From that profile’s Actions column, click Edit link
  5. At the top right of the ‘Main Website Profile Information’ box, click (Check Status?)
  6. Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section.

 

That’s it.

Paste the code in all of your files or paste the code in a file, that is included in all of the files.