Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dinesh Balaji
Integrating Web Analytics( Site Catalyst) with Liferay
July 25, 2011 10:41 PM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

<p>Hi All,</p>
<p>I am currently using Liferay 6.0 EE. I want to integrate Web Analytics - Site Catalyst to my site.&nbsp;</p>
<p>Kindly guide me on this if you have implemented this integration.</p>
<p>Thanks in Advance for your reply.</p>
<p>Warm Regards,</p>
<p>Dinesh V</p>
Samuel Kong
RE: Integrating Web Analytics( Site Catalyst) with Liferay
July 25, 2011 11:42 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1591

Join Date: March 10, 2008

Recent Posts

Dinesh,

I haven't worked directly with Site Catalyst, but I assume you just need to add a piece of JavaScript to every page.

Option 1) Add the JS to your theme.
Option 2) Create a hook
Dinesh Balaji
RE: Integrating Web Analytics( Site Catalyst) with Liferay
July 26, 2011 12:00 AM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

<p>Hi Samuel,</p>
<p>Thanks a lot for your timely reply.</p>
<p>According to your solution, how can I add JS to the Individual Pages. Do you mean that I have to add it from the front end ?</p>
<p>If I want to add it to the theme level- where do I want to add it ? Kindly help.</p>
<p>Warm Regards,</p>
<p>Dinesh V</p>
Dinesh Balaji
RE: Integrating Web Analytics( Site Catalyst) with Liferay
July 26, 2011 3:08 AM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

<p>Hi Samuel,</p>
<p>I have added the code to the portal_normal.vm.</p>
<p>I am referring to this web site - http://www.cms-clarity.com/tomcat/integrate-omniture-with-liferay-or-another-cms.</p>
<p>&nbsp;</p>
<p>My Question is how to get the page name dynamically in the portal_normal.Vm file and provide that data to web analytics ?</p>
<p>Warm Regards,</p>
<p>Dinesh V</p>
Samuel Kong
RE: Integrating Web Analytics( Site Catalyst) with Liferay
July 26, 2011 7:22 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1591

Join Date: March 10, 2008

Recent Posts

Directly modifying TOMCAT_HOME/webapps/ROOT/html/themes/classic/templates/portal_normal_vm is not supported. You should create your own theme instead.

Your theme determine your page's title. So you can't really dynamically get the page title through velocity. unless you saved your page title to a variable. Having sad that, the classic theme constructs the page title using:
1$the_title - $company_name
Dinesh Balaji
RE: Integrating Web Analytics( Site Catalyst) with Liferay
July 27, 2011 6:08 AM
Answer

Dinesh Balaji

Rank: Junior Member

Posts: 52

Join Date: October 6, 2010

Recent Posts

<p>Thanks a lot Simon.</p>
<p>I am getting the page name from the friendly URL -&nbsp;var pgname = "$layout.getFriendlyURL()"; and i am passing this value</p>
Jitender Soodan
RE: Integrating Web Analytics( Site Catalyst) with Liferay
June 11, 2013 9:40 PM
Answer

Jitender Soodan

Rank: New Member

Posts: 5

Join Date: June 16, 2011

Recent Posts

You can add your omniture code to /html/common/themes/bottom-ext.jsp and then include this file in portalnormal.vm file of your themes.

This way all pages will call omniture.