O'Reilly logo

Liferay 6.2 User Interface Development by Jonas X. Yuan, Xinsheng Chen

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

Integrating Google Analytics

Clients may want us to add Google Analytics feature in our Liferay Portal site—they may want our Liferay Portal site to be hooked up with the Google Analytics site. They may even want event reports and custom variable reports. Because these events may happen on any portal page, we will add the code for Google Analytics in the portal_normal.vm file of a theme.

To send our site information to the Google Analytics site, first we need to create a Google Analytics account. If you already have a Gmail account, you can use it for your Google Analytics site.

Go to the Google Analytics site at http://www.google.com/analytics/ and sign in.

After you sign in, go to the Account Administration page, and create a new account for your ...

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