留言板
Google Analytics syntax error??
Hello,
I followed the wiki article about google analytics; I added the code in the wiki page to bottom-exp.jsp. Then I added "$taglibLiferay.include("/html/common/themes/bottom-ext.jsp") " in portal-normal.vm. This is the error I get:
Any ideas?
Baris
I followed the wiki article about google analytics; I added the code in the wiki page to bottom-exp.jsp. Then I added "$taglibLiferay.include("/html/common/themes/bottom-ext.jsp") " in portal-normal.vm. This is the error I get:
14:07:12,776 ERROR [MinifierUtil:121] 4: 28: unterminated string literal
14:07:12,778 ERROR [MinifierUtil:121] 4: 28: syntax error
14:07:12,778 ERROR [MinifierUtil:121] 5: 6: syntax error
14:07:12,779 ERROR [MinifierUtil:121] 5: 26: missing exponent
14:07:12,779 ERROR [MinifierUtil:121] 5: 29: missing ; before statement
14:07:12,780 ERROR [MinifierUtil:121] 5: 39: missing exponent
14:07:12,780 ERROR [MinifierUtil:121] 5: 40: syntax error
14:07:12,781 ERROR [MinifierUtil:121] 1: 0: Compilation produced 7 syntax errors.
14:07:12,781 ERROR [MinifierUtil:87] JavaScript Minifier failed for
var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
Any ideas?
Baris
You need not have to do all these things now.
you have an UI to set the google analytics ID.
please check, http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Google+Analytics
For any help feel free to contact me,
Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global
A Liferay expert company.
you have an UI to set the google analytics ID.
please check, http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Google+Analytics
For any help feel free to contact me,
Ahmed Hasan
CTO, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global
A Liferay expert company.
Hello,
I saw the UI, but then I have to figure out Google Analytics for each community and organization. I want to have google analytics portal wide. I saw the wiki article, but it didn't work for me.
Baris
I saw the UI, but then I have to figure out Google Analytics for each community and organization. I want to have google analytics portal wide. I saw the wiki article, but it didn't work for me.
Baris
HI Baris,
Our site uses the same UA for all the communities.. So if you wish you can use same UI in all the communities(equals portal wide configuration) and then if you like, you can create separate profiles in analytics for separate reports.
Our site uses the same UA for all the communities.. So if you wish you can use same UI in all the communities(equals portal wide configuration) and then if you like, you can create separate profiles in analytics for separate reports.
Without having to put google analytics ID one by one for each community?
Baris
Baris
panchatcharam siva,修改在8 年前。
RE: Google Analytics syntax error??
New Member 发布: 1 加入日期: 14-8-19 最近的帖子
I like to Disable Google Analytics. Becuase am getting below error while start up of server
INFO: Got Exception fetching http://www.google.com/ig/lib/libga.js - 5000ms
org.apache.http.conn.ConnectTimeoutException: Connect to www.google.com/216.58.220.36:80 timed out
Am able to download javascript file in the same browser (http://www.google.com/ig/lib/libga.js)
and below are the setting i have currently
Site Settings
Analytics
Google Analytics ID
<I didnt give any Id for the same>
Piwik
<I didnt give any Id for the same>
INFO: Got Exception fetching http://www.google.com/ig/lib/libga.js - 5000ms
org.apache.http.conn.ConnectTimeoutException: Connect to www.google.com/216.58.220.36:80 timed out
Am able to download javascript file in the same browser (http://www.google.com/ig/lib/libga.js)
and below are the setting i have currently
Site Settings
Analytics
Google Analytics ID
<I didnt give any Id for the same>
Piwik
<I didnt give any Id for the same>
附件: