Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google's new +1 button


discxpress

Recommended Posts

On March 30, 2011 Google announced the +1 button to search listings. From my understanding, if you have the +1 button on your web pages and a person votes for a page a dark +1 button will appear next to that page's listing if it appears in the search results.

 

So if someone searches Google and one of your pages appears in the results then that person click on your listing. Of course they will land on that page on your site. If that person like the content and click on the +1 button, Google considers that as a vote. In the general FAQS, a vote for a page make it more relevant and may help with that page's ranking. Check it out for yourself http://www.google.com/support/webmasters/bin/answer.py?answer=1140194.

 

Please share your thoughts with us here. This may help OSC shop owners with their SEO development to create better content for their visitors. I think this allows visitors to weigh in on what appears at the top of the search results.

Link to comment
Share on other sites

The effect of this depends on how many people use it. Every store owner should add one, just because it's Google. The only question is where to put it. On the product page, of course, and somewhere near the top. If you have a Facebook Like button, or a collection of social media buttons, put it with those.

 

I'm very interested to see what happens with this.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

All that buttons all over, "like me", "tweet me", "+1 me" etc do compete with the main and most important one: The buy now button

 

It looks slowly that it get more important to be liked than to sell the stuff. What to do with people who like but don't buy? Like a gf telling you "I like you but ..."

 

So ok, times demand to put all this buttons on the product info page, but it is the same important to keep the buy now prominent enough

Link to comment
Share on other sites

@Jim I agree just because its Google you should use it. All over the forums here and other places I read about shop owners wanting to be blessed by the Google god.

 

@ multimixer. You make an important point. Im also guilty of focusing on achieving better search ranking than making the sale. The shop owner should encourage the visitor to buy. Maybe post a special offer as well as place the buy now button in the same area as the like and +1 buttons.

 

A great idea would be to create a small table with the special offer at the top, the buy now button in the middle & the Like, +1 and Twitter buttons at the bottom. Or something along those lines.

Link to comment
Share on other sites

I added the google button, slows down loading of site pages considerably

 

Also after a while it was somehow reset to 0, that was it

 

Is there a way to tell google to load button last at least, as I removed it for time being.

Getting the Phoenix off the ground

Link to comment
Share on other sites

I added the google button, slows down loading of site tpages considerably

 

Also after a while it was somehow reset to 0, that was it

 

Is there a way to tell google to load button last at least, as I removed it for time being.

That's strange. Maybe try installing it in different places. Maybe the code was interfering with other code.

 

I haven't notice a difference in load speeds. I have mine installed near the product image. It loads last there.

 

Good luck.

Link to comment
Share on other sites

That's strange. Maybe try installing it in different places. Maybe the code was interfering with other code.

 

I haven't notice a difference in load speeds. I have mine installed near the product image. It loads last there.

 

Good luck.

I now removed it completely again after retrying code on different place.

 

It seems my country is on a not so +1 for Google - South Africa

Google seems to block all search queries into this subject

 

I will assume our country cannot use this function(for now at least)

Also the button turns red now when clicked - not updating

 

aaarg for now :'(

Getting the Phoenix off the ground

Link to comment
Share on other sites

I have installed the button on my main-page of the store, but I would also like to Install it to each product. is this possible? If so, how?

(sorry, I am not a programmer to know better)

 

If this here goes to the head of the page (index.php?)

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

 

and this goes to the product_info.php(?) where the button has to show up:

 

<g:plusone width="55" height="20" href="http://www.example.com/blog"></g:plusone>

 

What code would I have to insert for www.example.com so google can get feedback to each of my products?

Link to comment
Share on other sites

That's all you would need to insert. The script you place in the header will tell Google which page. I would suggest placing the code above the fold around the product picture or buy now button.

Link to comment
Share on other sites

Page loading solved for using some google apps asynchronous loading

 

Plus 1 button:

Inside <head>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
   <script type="text/javascript">
     $(document).ready(function() {
       $.getScript('https://apis.google.com/js/plusone.js');
       $('.sharebox').append('<div class="widget"><div class="g-plusone" data-count="true"></div></div>');
     });
   </script>

Where button needs to show -

<div class="sharebox"></div>

 

for Google tracking

Inside e.g. index.php and product_info.php or others required <head> section

  <script type="text/javascript">
   var _gaq = _gaq || [];
   _gaq.push(['_setAccount', 'UA-xxxxxxx-x']);
   _gaq.push(['_trackPageview']);
 </script>

 

and 2nd part I've put my includes/footer.php

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

 

Please note above the UA-xxxxxxx-x - must be your Google analytic code

 

Hope this helps

Getting the Phoenix off the ground

Link to comment
Share on other sites

The code in the header is the dynamic part. Place the 2nd piece of code where you want the button to appear. Just move it around until you get it where you like it.

What works best for me - product_info.php

<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>
<div class="sharebox"></div></td>
</tr>
<?php
if ($product_info['products_price']>0) {

 

index.php

    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td><h1><?php echo $htc['htc_title']; ?></h1></td>

           <tr>
          <td colspan="2" align="left"><h2><?php echo $htc['htc_description']; ?></h2><div class="sharebox"></div></td>
         </tr>
   <?php /*** End Header Tags SEO ***/ ?>

Getting the Phoenix off the ground

Link to comment
Share on other sites

Thanks, but how would that look like? Sorry for this maybe stupid question, but with which code exactly will I have to replace the www.example.com if I put it in the product info? Isnt that a dynamic part?

 

If you're using 2.3.1, this blog post will show you a step by step procedure.

~ Don't mistake my kindness for weakness ~

Link to comment
Share on other sites

Hello,

 

I want add on button to the store (oscommerce) and another to the products... it is possible?

 

I add this, but score disappears after some time...

 

Thanks

Link to comment
Share on other sites

Hello,

 

I want add on button to the store (oscommerce) and another to the products... it is possible?

 

I add this, but score disappears after some time...

 

Thanks

I would suggest adding it to index.php. For each product, add the plus one code to product_info.php. Look in the above posts on how to properly insert the code.

Link to comment
Share on other sites

  • 1 year later...

put 200 plus social social media buttons in one simple small container, including Google +1, with an "Add This" expandable box :http://www.oscommerce.com/forums/topic/368458-231-a-how-to-road-mapno-questions-just-how-tos-please/page__view__findpost__p__1642184

 

you could just add it to an existing box as well, if you don't want to add a new one

 

you can then shut off the other social media buttons in the admin panel, as they won't be needed

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...