Google Analytics for E-commerce

How do I set up google analytics for litium? Coding or only a setting somewhere I’ve missed? Any best practices I should be aware of?

We’re not using accelerator.
Litium version: 6

You add the analytics id/GTM id under Settings > Websites > Web sites and texts.

Then there’s a TrackingScriptService you can use to get the scripts to include on your rendered pages. This include basic Analytics ECommerce Tracking.

1 Like

Do you mean Litium.Web.Mvc.TrackingScriptsHtmlHelperExtensions?

It’s in the Litium.Web namespace.

You can see how it’s used in LayoutController.cs in a standard Litium 6 Accelerator.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.