Close

Analytics Not Working for Ecommerce

feelyd
10 years ago
#6332 Quote
Avatar
  • 6
Hi Nop-Templates,

I have recently installed your new skin Motion for my website www.lovekidsbooks.com , it is excellent.
One issue at the moment is that Analytics for Ecommerce is not working.

So on the last step of the checkout, Ecommerce tracking code should be put on the page.

Your new skin goes to https://www.sitename.com/orderdetails/?????. Instead of checkout/Completed
Looking at the analytics plugin it only gets , embeded using the following logic
/Special case, if we are in last step of checkout, we can use order total for conversion value

                if (controller.ToString().Equals("checkout", StringComparison.InvariantCultureIgnoreCase) &&
                    action.ToString().Equals("completed", StringComparison.InvariantCultureIgnoreCase))
                {
                    var lastOrder = GetLastOrder();
                    globalScript += GetEcommerceScript(lastOrder);
                }

Any idea what I put in for your skin ?

Thanks,
Declan
feelyd
10 years ago
#6333 Quote
Avatar
  • 6
Actually I can see now it's nothing to do with your templates.
It's a nopcommerce issue.

Thanks anyway,
Declan
feelyd
10 years ago
#6344 Quote
Avatar
  • 6
Just an update on this, the new version of nopcommerce has a final step in the checkout going to orderdetails !