How to add “google-site-verification” code in your site


 


 
How to Verify Your Site with Google Webmaster Tools

To verify your site and get your meta tag content:

 =>  Go to the Google Webmaster Tools page: Webmaster Tools
 =>  To add a site, click on Add a site.
 =>  Enter the URL for your site.
 =>  Select the Alternate methods tab and then choose the Add meta tag method (first one in the list).
 =>  Copy the value that it gives you for the content parameter of the google-site-verification meta tag. Example: <meta name="google-site-verification" content="yuOLc7bLXFLCZTERTmcXnEPCe9f6pIE9kFYQNpH8gJI">
 =>  Copy the following verification code below and paste it into the Keywords area under the SEO tab.
	<meta name="google-site-verification" content="yuOLc7bLXFLCZTERTmcXnEPCe9f6pIE9kFYQNpH8gJI">
 =>  Open the Webmaster Tools home page again. Make sure that you don't have any requests to verify your site again. If you do, verify it again. 

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

Display Location on map with Population


For Display any kind of data or product in selected city with country then you can use below code

 <script type='text/javascript' src='https://www.google.com/jsapi'>
 </script>
 
 <script type='text/javascript'>
 
 google.load('visualization', '1', {'packages': ['geochart']});
 
 google.setOnLoadCallback(drawMarkersMap);

 function drawMarkersMap() {
  var data = google.visualization.arrayToDataTable([
    ['City',       'Population', 'Area'],
    ['Junagadh',   2761477,      1285.31],
    ['Veraval',    761477,       85.31],
    ['Rajkot',     1324110,      81.76],
    ['Ahmedabad',  959574,       17.27],
    ['Mumbai',     907563,       130.17],
    ['Amreli',     97563,        31.17],
    ['Upleta',     9563,         32.17],
    ['Surat',      655875,       158.9],
    ['Porbandar',  07906,        243.60],
    ['Bhavnagar',  380181,       140.7],
    ['Baroda',     371282,       102.41],
    ['Goa',        67370,        213.44],
    ['Bhuj',       67370,        213.44],
    ['Delhi',      52192,        43.43],
    ['Pune',       348262,       110],
    ['Chennai',    382642,       101],
    ['Culcutta',   38622,        31],
    ['Banglore',   38262,        81],
    ['Patna',      81262,        71],
    ['Indore',     28262,        30],
    ['Bopal',      3262,         81],
    ['Kashmir',    322,          76],
    ['Cochin',     4321,         20],
    ['Jaipur',     4322,         30],
    ['Silong',     4323,         40],
    ['Agartala',   4324,         50],
    ['Nagaland',   4325,         60],
    ['Vijayvada',  32,           58],
    ['Sikkim',     22,           58],
    ['Puri',       35,           39],
    ['Raipur',     25,           29],
    ['Jodhpur',    607906,       243.60],
    ['Kargil',     607916,       246.60],
    ['Nagpur',     6,            26.60],
    ['Solapur',    60916,        46.60],
    ['Lucknow',    6916,         146.60],
    ['Amritsar',   696916,       16.60],
    ['changlang',  696916,       14.60],
    ['Lunglei',    496916,       19.60],
  ]);

  var options = {
    region: 'IN',
    displayMode: 'markers',
    colorAxis: {colors: ['green', 'blue']}
  };

  var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
  chart.draw(data, options);
 };
</script>


<div id="chart_div" style="width: 900px; height: 500px;"></div>

It will look like below image

Display Location on map with Population

Display Location on map with Population

*Note : Population data is a dummy data for testing purpose

How to display google map as image


  

Latitude = ‘21.53357’;
Longitude = ‘70.45404’;
Map Type = hybrid ( ROADMAP , SATELLITE ,HYBRID ,TERRAIN )
Markers Color : Purple
Markers Label : J
Map Size = 600×350 ( Widht * Height)
Zoom Level : 13

You can also set title on map

Below code is for display google map as image

  
<img src=”http://maps.google.com/maps/api/staticmap?center=21.53357,70.45404&zoom=13&markers=color:purple%7Clabel:J%7C21.53357,70.45404&size=600×350&maptype=hybrid&sensor=false&#8221; border=”1″ title=”Jainish Senjaliya” alt=”Jainish Senjaliya” />
  

Output : 

Jainish Senjaliya

  

If you want to set link of image and that is redirect to google map then you can use below code.

<a href=”https://maps.google.ch/maps?f=q&hl=en&q=Jainish Senjaliya @21.53357,70.45404&zoom=12&markers=size:small%12Ccolor:0xF35834%7C21.53357,70.45404&maptype=satelite&sensor=false&t=k&z=12&om=1&#8243; target=”_blank”> <img src=”http://maps.google.com/maps/api/staticmap?center=21.53357,70.45404&zoom=13&markers=color:purple%7Clabel:J%7C21.53357,70.45404&size=600×350&maptype=hybrid&sensor=false&#8221; border=”1″ title=”Jainish Senjaliya” alt=”Jainish Senjaliya” />
</a>
  

Output : 

Jainish Senjaliya

Google Analytics


<script type=”text/javascript”>

var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXX-1’]);
_gaq.push([‘_trackPageview’]);

(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘http://www&#8217;) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

Note the UA-XXXXXXXX placeholder — replace this with your unique tracking code. Your Google Analytics code can also be pasted entirely in the “from <script> to </script>” section of the function; in most cases, only the UA- number would change.

https://www.google.com/analytics/web/provision?et=&hl=en&authuser=#provision/SignUp/

If you have any query then feel free to contact me at Jainish Senjaliya