Developer forum

Forum » Feature requests » Load part of eCom receipt only once

Load part of eCom receipt only once

Jacob Bertelsen
Reply

Hi,
My problem is for all our eCom-solutions, with Google Analytics eCom-tracking code on them.

My Google Analytics eCom tracking script is called every time the receipt page is shown.
If the customer bookmarks the receipt page, and the receipt page is loaded multiple times, the order will also be submitted to Google Analytics multiple times.

(The problem is described in the "Inflated e-commerce revenue" paragraph on this page:
http://www.getelastic.com/6-ecommerce-analytics-problems/ )

There does not seem to be any DWTags I can use, to show the GA-script ONLY the first time the receipt page is shown.

Does anyone know a workaround for this, or do you know of any feature requests that will fix this?

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jacob

 

I see the issue.

 

A possible workaround or hack:

Create a custom orderfield - "ReceiptShowCount" or something.

That field will be available as a template tag in the receipt template. If it is less than 1, do not render the GA code.

 

Also on the receipt if the field is less than 1, call a custom aspx page that will increase this number.

You can do that by using some custom code, or create a page with the datalist module and a published view that looks like this:

UPDATE [EcomOrders] SET ReceiptShowCount = 1 WHERE OrderID = Request("OrderID")

 

You can then call the page using i.e. AJAX with the datalist like Default.aspx?id=123&orderid=Order1 from the receipt page.

 

BR Nicolai

 
Jacob Bertelsen
Reply

Hi Nicolai,

Thank you for responding :) .

I will relay this to the solution's project manager.

The workaround is fine, and I believe it will work.

In the long run it would be nice, if the future would bring a DW standard feature, that did not require backend resources, in order to implement the "load only once" on a receipt page.

 

Any thoughts on this being possible? (One of the guys from DW Support said that a "no-follow"-option in 8.3 probably would be the closest we got to a solution) .
I do believe, however, that since measuring conversion rate and other performance is becoming more and more key for webshops, that it would be a nice addition to the eCom-module, since this addition would help non-backend-users to implement tracking, and get more accurate statistics.
Not only in Google Analytics eCom-tracking, but also in other tracking scripts, whatever they are, if they suffer from the "load multiple times, submit data multiple times"-problem :) .

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Jacob

 

yes - it is a great feature.

 

I've created a Backlog item for 8.4 (TFS#12557) - cannot make any promises yet, though. But it is a simple task, so it will probably make it.

 

BR Nicolai

Votes for this answer: 1
 
Jacob Bertelsen
Reply

Nice, thanks :)

 
Mikkel Høst
Reply

Hi Nicolai.

Can we do this now?

 
Anders Ebdrup
Reply

Hi Mikkel,

 

Yes, you can do this from 8.4.0.0, where you have this tag: Ecom:Order.ReceiptShowCount - you can find more information here: http://developer.dynamicweb-cms.com/releases/dynamicweb-8-4.aspx (search for the tag on the page smiley)

 

Best regards, Anders

 
Peter Bille Larsen
Reply

Works fine, just put this into the receipt page: @GetValue("Ecom:Order.ReceiptShowCount");

Thank you very much for this fix Nicolai !