Please help with experiment

Discussion in 'Site Marketing' started by seymourjames, Jul 17, 2011.

  1. seymourjames All Hands On Deck

    To all who with to help. I have a site

    Property In France

    I have just introduced the new google +1 feature onto them. It is sitting in the main menu bar. I would be grateful for votes. Simply click the +1 button to vote. If you have a gmail or google account you can vote straight away. If not its a 10 second sign up and you also get lots of goodies by having a google account and access to all their webmaster tools.

    Many thanks to those that do it as I am trying to find out if this will help improve the sites rankings . I will return the favor to anyone who is doing similar. We all need to help to make our sites successful. TemplateCodes is no exception.
  2. EnergyFreak Customer

    I will gladly help you with this. If you could do the same for me, I would be grateful.

    Publito.com

    Also I have a question about one of the features, I am not sure if you used it or not, but in Advanced Options the URL to +1 says you can choose the url to which it will send you to once the +1 is clicked? I read the documentation but I am still unsure of what it does. maybe you can clarify it for me?

    Thanks.
  3. seymourjames All Hands On Deck

    Done - yes - you can dynamically set the url in the +1 feature for the specific page you are on.
  4. EnergyFreak Customer

    Okay so if I set it to my homepage, every time someone will press the +1, no matter what page they are on, they will be re-directed to the homepage? Because no matter what page I'm on, The +1 appears, so I'm guessing you can't +1 every page individually?
  5. seymourjames All Hands On Deck

    NO. You need to dynamically add in the page as the documentation they provide suggests. Evey page can have its own +1.

    Did you actually press the +1 button on the sites I mentioned?
  6. EnergyFreak Customer

    I figured it out, if you don't supply a url in the "url + 1" of advanced options, all pages on the website become available to +1. If you do, then only the entire website can only be +1 once.

    Yes on both...
  7. seymourjames All Hands On Deck

    or you use the php server variable.
  8. seymourjames All Hands On Deck

    The experiment is not going well with only 27 people bothering to do it. Its a 10 second effort.
  9. lowis Customer

    Google +1 How can I insert for all product

    Hi I need help How can I put this dynamically in php, I tried but I cant, always give +1 in others products.
    I have this in viewlisting.tpl

    HTML:
    <g:plusone annotation="inline" width="350" href="viewlisting.php?view={$id}"></g:plusone>
    
    I dont know what wrong...
  10. seymourjames All Hands On Deck

    Actually you don't need to do all of this stuff apparently. Put this in your header area

    {literal}
    <script type="text/javascript">
    (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
    })();
    </script>
    {/literal}


    and put this in the layout or any template file, just as I have type it.

    <div class="g-plusone"></div>

    You don't need to set pages. G will work it out.

Share This Page