Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to remove google analytics code in my page?
I try to test google analytics with my Liferay site last week.
It seems to be useless in my site(intranet) so I disable it today.
But I found something weird about my index page.
I saw some characters at the footer like this picture.(see the red arrow)

And I check the source code of this index page, I found the code is as the red frame.
I try to search this string in every file of my liferay folder, but never find.
However, I find the script in the blue frame and it meybe from google analytics.
I think it's because when I set google analytics in site setting of control panel, google has do something (insert script) in my page.
Now I want to remove it but I can't find it. Could someone please tell me how to remove it? Thanks a lot.
It seems to be useless in my site(intranet) so I disable it today.
But I found something weird about my index page.
I saw some characters at the footer like this picture.(see the red arrow)
And I check the source code of this index page, I found the code is as the red frame.
I try to search this string in every file of my liferay folder, but never find.
However, I find the script in the blue frame and it meybe from google analytics.
I think it's because when I set google analytics in site setting of control panel, google has do something (insert script) in my page.
Now I want to remove it but I can't find it. Could someone please tell me how to remove it? Thanks a lot.
hi niki ,
You can remove google Analytics form control panel->setting>monitoring ,but i am also facing same problem as you (liferay 6.0 version)
You can check curenfly.com it's our one of client site,here it's not because of google Analytics..
If you find any solution then share here ...
Thanks
chirag
You can remove google Analytics form control panel->setting>monitoring ,but i am also facing same problem as you (liferay 6.0 version)
You can check curenfly.com it's our one of client site,here it's not because of google Analytics..
If you find any solution then share here ...
Thanks
chirag
Hi chirag,
Thanks for your reply. I saw the same characters in curenfly.com. I am confused how google insert the script in out site.
And It can't be removed since I disable google analytics.
I'll try to ask google to find out the solution and hope we can fix it.
Thanks for your reply. I saw the same characters in curenfly.com. I am confused how google insert the script in out site.
And It can't be removed since I disable google analytics.
I'll try to ask google to find out the solution and hope we can fix it.
Hi Chirag,
I finally found out the solution!
The script inserted by goole is in database, not html or jsp files.
You can check out the attribute [settings_] of the table {LayoutSet} in Liferay database.
There is one record inserted the script in this attribute.
When I delete it and restart Liferay, the weird string is gone!
You can try it and hope it can fix the same problem in your site.
I finally found out the solution!
The script inserted by goole is in database, not html or jsp files.
You can check out the attribute [settings_] of the table {LayoutSet} in Liferay database.
There is one record inserted the script in this attribute.
When I delete it and restart Liferay, the weird string is gone!
You can try it and hope it can fix the same problem in your site.
chirag @ India:
hi niki ,
You can remove google Analytics form control panel->setting>monitoring ,but i am also facing same problem as you (liferay 6.0 version)
You can check curenfly.com it's our one of client site,here it's not because of google Analytics..
If you find any solution then share here ...
Thanks
chirag
Hi Niki,
I have the same problem, but I dont understand this sentence:
can you please tell me which database table you speak of?
Thanks in advance
arthur
I have the same problem, but I dont understand this sentence:
You can check out the attribute [settings_] of the table in Liferay database
can you please tell me which database table you speak of?
Thanks in advance
arthur
Arthur Grohe:
Hi Niki,
I have the same problem, but I dont understand this sentence:You can check out the attribute [settings_] of the table in Liferay database
can you please tell me which database table you speak of?
Thanks in advance
arthur
I am so sorry that I forgot to tell you the table.
The table is {LayoutSet}
Niki@TW.
Hi,
unfortunately all settings_ entries are empty in my table....
Greetings
unfortunately all settings_ entries are empty in my table....
Greetings