Fix Google Analytics/Merchant Tracking issue
Project ID: 1329893385
Project Details
  • Status:
    Closed (Cancelled)
  • Posted:
    2/22/2012 at 1:49 EST
  • Cancelled:
    2/24/2012 at 9:10 EST
  • Project Creator:
  • Budget:
    N/A
  • Description:
    Hi
    We have google analytics merchant tracking on a site. It was working fine. Then the site was migrated to another server and it has stopped working correctly.

    It may be that it wasn't migrated properly - but doubt it.

    So how does this particular bit work? Well, if someone selects some products to purchase, then enters their address information, when they click 'buy' the whole information is passed through to Sagepay (formerly Protx) to take the card details.

    Not only is the information for the transaction passed through, but so is the information for the callback page that Sagepay has to do on completion of a successful transaction. Embedded in this callback is the Google Javascript which then reports back to Google analytics which products have been purchased etc etc.

    As I said, it was working fine until we migrated the site.

    Before we migrated, on the success page this is the sort of thing that was being returned:
    [15/02/2012 13:04:05] art-connection: <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-2xxxxxx-2']);
    _gaq.push(['_trackPageview']);
    _gaq.push(['_addTrans','361','fastspares','18.5','tax','shipping','','','']);
    _gaq.push(['_addItem','361','GREY','Fastpress Cover and Foam','','12.00','1']);
    _gaq.push(['_addItem','361','SCFE','Elna Sleeve Cover and Foam','','6.50','1']);
    _gaq.push(['_trackTrans']);

    (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);

    But now, this is all thats being returned:
    art-connection
    [15/02/2012 13:04:48] art-connection: var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-2xxxxxxx-2']);
    _gaq.push(['_trackPageview']);

    (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);
    })();

    ie with no product information.


    Looking forward to hearing from some top class reliable coders who want more work on completion of this task.
    Additional Info (Added 2/22/2012 at 4:11 EST)...
    PLEASE NOTE : - THE OLD SERVER FROM WHERE THE SITE USED TO RUN IS STILL OPERATIONAL AND FULLY ACCESSIBLE AND COMPLETELY UNCHANGED SO A DIRECT COMPARISON IS POSSIBLE.
    Additional Info (Added 2/24/2012 at 9:09 EST)...
    Thanks for looking everybody - seems there wasnt a problem in the end at all.... the client wasnt getting the stats because......... they were looking at the wrong account.

    Users hey!

  • Tags:
Project Bids
Programmer Bid Delivery Time Time of Bid Rating  
codegurunl $40 2 days 2/23/2012 at 2:42 EST (No Feedback Yet)
Google Analytics expert. Please contact me if you are interested.
skap $50 4 days 2/22/2012 at 6:31 EST 9.94/10
(18 reviews)
coderxo $85 2 days 2/24/2012 at 9:02 EST 9.90/10
(376 reviews)
quick pro help. ftp and escrow required.