How to remove google analytics code in my page?

thumbnail
Niki Lin, modified 12 Years ago. Junior Member Posts: 31 Join Date: 5/9/13 Recent Posts
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.
thumbnail
chirag @ India, modified 12 Years ago. Regular Member Posts: 129 Join Date: 12/21/11 Recent Posts
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
thumbnail
Niki Lin, modified 12 Years ago. Junior Member Posts: 31 Join Date: 5/9/13 Recent Posts
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.
thumbnail
Niki Lin, modified 12 Years ago. Junior Member Posts: 31 Join Date: 5/9/13 Recent Posts
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.emoticon

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
thumbnail
Arthur Grohe, modified 12 Years ago. Junior Member Posts: 49 Join Date: 11/5/12 Recent Posts
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
thumbnail
Niki Lin, modified 12 Years ago. Junior Member Posts: 31 Join Date: 5/9/13 Recent Posts
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.
thumbnail
Arthur Grohe, modified 12 Years ago. Junior Member Posts: 49 Join Date: 11/5/12 Recent Posts
Hi,

unfortunately all settings_ entries are empty in my table....

Greetings