1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Google Checkout and Analytics

Discussion in 'Traffic Analysis' started by leony, Jan 18, 2009.

  1. #1
    Hello,

    I have been trying to integrate Google Checkout and Analytics to see the ecommerce conversion rates.

    My cart is custom built and I use basic HTML integration. The instructions can be found on Google Checkout help pages, however the instructions are based on "Digitally Signed Checkout XML API Requests", mine is Not digitally signed and HTML only.

    I use the following code which now I believe is not for my case:

    
    <script type="text/javascript">
      var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
      document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3Cscript%3E"));
    </script>
    
    <script type="text/javascript">
      var pageTracker = _gat._getTracker("UA-XXXXX-X");
      pageTracker._initData();
      pageTracker._trackPageview();
    </script>
    
    <script src="http://checkout.google.com/files/digital/ga_post.js"
      type="text/javascript">
    </script>
    
    
    <form action="..." method="POST" onsubmit="setUrchinInputCode(pageTracker);">
        <input type="hidden" name="cart" value="...">
        <input type="hidden" name="signature" value="..."> 
        <input type="hidden" name="analyticsdata" value="">
        <input type="image" name="Google Checkout" alt="Fast checkout through Google"
            src="http://checkout.google.com/buttons/checkout.gif?merchant_id=YOUR_MERCHANT_ID
            &w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/>
    </form>
    
    
    Code (markup):
    As my integration is Basic, I have not got the following in my code:

    
        <input type="hidden" name="cart" value="...">
        <input type="hidden" name="signature" value="..."> 
    
    Code (markup):
    So how can I integrate my cart?

    Any suggestions?

    Thanks...
     
    leony, Jan 18, 2009 IP
  2. Homer

    Homer Spirit Walker

    Messages:
    2,396
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Homer, Jan 18, 2009 IP