Sedang Disiapkan

552958 Fix Google Analytics/Merchant Tracking issue

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 || [];

[url removed, login to view](['_setAccount', 'UA-2xxxxxx-2']);

[url removed, login to view](['_trackPageview']);

[url removed, login to view](['_addTrans','361','fastspares','18.5','tax','shipping','','','']);

[url removed, login to view](['_addItem','361','GREY','Fastpress Cover and Foam','','12.00','1']);

[url removed, login to view](['_addItem','361','SCFE','Elna Sleeve Cover and Foam','','6.50','1']);

[url removed, login to view](['_trackTrans']);

(function() {

var ga = [url removed, login to view]('script'); [url removed, login to view] = 'text/javascript'; [url removed, login to view] = true;

[url removed, login to view] = ('https:' == [url removed, login to view] ? 'https://ssl' : 'http://www') + '.[url removed, login to view]';

var s = [url removed, login to view]('script')[0]; [url removed, login to view](ga, s);

But now, this is all thats being returned:

art-connection

[15/02/2012 13:04:48] art-connection: var _gaq = _gaq || [];

[url removed, login to view](['_setAccount', 'UA-2xxxxxxx-2']);

[url removed, login to view](['_trackPageview']);

(function() {

var ga = [url removed, login to view]('script'); [url removed, login to view] = 'text/javascript'; [url removed, login to view] = true;

[url removed, login to view] = ('https:' == [url removed, login to view] ? 'https://ssl' : 'http://www') + '.[url removed, login to view]';

var s = [url removed, login to view]('script')[0]; [url removed, login to view](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.

Kemahiran: Semua Boleh, Google Analytics, Javascript, SEO, Sekuriti Web

Lihat lagi: www google site, work ua, top coders, sagepay tracking, lt security, js products, google js, connection tracking, buy coders, buy art, web google analytics, tracking server, tracking s, text analytics, ssl issue, shipping tracking, sagepay, merchant, location tracking, google shipping

Tentang Majikan:
( 12 ulasan ) Reading, United Kingdom

ID Projek: #2298906