Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Dinesh Balaji
Integrating Web Analytics( Site Catalyst) with Liferay
25 luglio 2011 22.41
Risposta

Dinesh Balaji

Punteggio: Junior Member

Messaggi: 52

Data di Iscrizione: 6 ottobre 2010

Messaggi recenti

<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
25 luglio 2011 23.42
Risposta

Samuel Kong

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1591

Data di Iscrizione: 10 marzo 2008

Messaggi recenti

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
26 luglio 2011 0.00
Risposta

Dinesh Balaji

Punteggio: Junior Member

Messaggi: 52

Data di Iscrizione: 6 ottobre 2010

Messaggi recenti

<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
26 luglio 2011 3.08
Risposta

Dinesh Balaji

Punteggio: Junior Member

Messaggi: 52

Data di Iscrizione: 6 ottobre 2010

Messaggi recenti

<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
26 luglio 2011 19.22
Risposta

Samuel Kong

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1591

Data di Iscrizione: 10 marzo 2008

Messaggi recenti

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
27 luglio 2011 6.08
Risposta

Dinesh Balaji

Punteggio: Junior Member

Messaggi: 52

Data di Iscrizione: 6 ottobre 2010

Messaggi recenti

<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
11 giugno 2013 21.40
Risposta

Jitender Soodan

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 16 giugno 2011

Messaggi recenti

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.