O'Reilly logo

PHP 5 e-commerce Development by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Google Analytics

Another Google offering is Google Analytics, a useful web-based application for monitoring website analytics, such as visitor numbers, visitor lengths, popular pages, sources of traffic, and so on.

One particularly useful feature within Google Analytics for us is its e-commerce functionality. At minimum, we could add some code to indicate an order has been placed; this would allow us to look at data such as how many visits it took to make a purchase. We can of course go into more detail, supplying other information such as how much the order was for, and so on.

Google Analytics works by having a small piece of JavaScript inserted at the bottom of every page on our site.

Signing up

To sign up for Google Analytics, we simply need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required