3 * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
\r
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
6 * of this software and associated documentation files (the "Software"), to deal
\r
7 * in the Software without restriction, including without limitation the rights
\r
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
9 * copies of the Software, and to permit persons to whom the Software is
\r
10 * furnished to do so, subject to the following conditions:
\r
12 * The above copyright notice and this permission notice shall be included in
\r
13 * all copies or substantial portions of the Software.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\r
25 <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
\r
26 <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
\r
27 <%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
\r
29 <%@page import="com.pentila.entSavoie.utils.ENTMainUtilsLocalServiceUtil"%>
\r
30 <liferay-theme:defineObjects />
\r
32 <script type="text/javascript">
\r
33 //render du jQueryUploaderProgressWindow
\r
34 if(jQueryUploaderProgressWindow != null){
\r
35 jQueryUploaderProgressWindow.render(Ext.getBody());
\r
40 String googleCode = "";
\r
42 googleCode = ENTMainUtilsLocalServiceUtil.getENTGoogleAnalyticsCode(themeDisplay.getCompanyId());
\r
44 catch(Exception e) {}
\r
45 if (!"".equals(googleCode)) {
\r
47 <script type="text/javascript">
\r
48 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
\r
49 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
\r
51 var _gaq = _gaq || [];
\r
52 _gaq.push(['_setAccount', '<%= googleCode %>']);
\r
53 _gaq.push(['_trackPageview']);
\r
54 //console.info("Google Analytics trackPageView called");
\r
56 // on patch les ajax request pour fair des call sur google analitycs!!
\r
57 Ext.Ajax.on("requestcomplete", function(conn, response, options){
\r
59 //_gaq.push(['_trackEvent', 'category', 'action', 'opt_label', opt_value]);
\r
60 var cat = options.url;
\r
62 var optIndex = cat.indexOf('?');
\r
64 cat = "ajaxRequest";
\r
67 cat = cat.substring(0, cat.indexOf('?'));
\r
68 cat = cat.substring(cat.lastIndexOf('/')+1, cat.lenght);
\r
73 _gaq.push(['_setAccount', '<%= googleCode %>']);
\r
74 _gaq.push(['_trackEvent', cat, 'complete']);
\r
75 //console.info("Google Analytics trackEvent called");
\r