What’s New in Business Central 2025 Release Wave 2
The Autumn brings the second major release of the year for Business Central, as part of the 2 wave annual update cycle. Here we look at the highlight features.
In the standard nopCommerce Google Analytics plugin, there can sometimes be a case where a user returns to a page, say a checkout completed page, and causes Google Analytics Transaction code to resubmit back to your Google Analytics reports. This issue causes Google Analytics to show you that you might have made more orders than you actually have, your number of sales and even your revenue figures may be effected.
This sort of issue can occur in the following scenarios:
We have come up with a solution to this. Our solution is to only fire the Google Analytics Tracking Code if the order has been created within 15 minutes of the users session. Google does not accept duplicate transactions that are within 20 minutes of that last transaction based on that order.
So if a user opens their browser an hour or so after they completed their order, the tracking code will now not be sent.
Here's the original code located in WidgetsGoogleAnalyticsController.cs:
if (controller.ToString().Equals("checkout", StringComparison.InvariantCultureIgnoreCase) &&
action.ToString().Equals("completed", StringComparison.InvariantCultureIgnoreCase))
{
var lastOrder = GetLastOrder();
globalScript += GetEcommerceScript(lastOrder);
}
|
And this is our solution code:
if (controller.ToString().Equals("checkout", StringComparison.InvariantCultureIgnoreCase) &&
action.ToString().Equals("completed", StringComparison.InvariantCultureIgnoreCase))
{
var lastOrder = GetLastOrder();
//Only send the e-commerce tracking code if the order was placed within the last 15 minutes.
//Google will de-duplicate transactions only if they are in the current session (20 minutes since last hit)
if (lastOrder != null && lastOrder.CreatedOnUtc >= DateTime.UtcNow.AddMinutes(-15))
{
globalScript += GetEcommerceScript(lastOrder);
}
}
|
If you don't feel confident with editing code or are unable to, we offer this solution and many other cool tricks with our Google Analytics Enhanced e-Commerce plugin.
Here are just a couple of features that we include:
Feel free to download a trial today and let us know how you get on!
You can also read the full documentation for the plugin here.
The Autumn brings the second major release of the year for Business Central, as part of the 2 wave annual update cycle. Here we look at the highlight features.
After a recent visit to the Digital Manufacturing 2day event in Coventry and an insightful presentation by Lord Chris Holmes, I thought I would delve a bit deeper into the current AI regulation facing UK industry.
Choosing the right ERP system when moving on from Sage 50 can shape how efficiently your business grows and adapts. If you want advanced features, greater flexibility and easier integration with familiar Microsoft tools, Microsoft Dynamics 365 Business Central is often the stronger option compared to Sage 200. As real-time data insight, automation and scalability are now necessities and not luxuries, your ERP upgrade decision is more important than ever.