herrmarek
herrmarek

Reputation: 805

how to prevent joomla from loading google analytics script (ga.js)

For some unknown reason Joomla loads ga.js from google servers by default. The call is located in the file libraries/joomla/google/embed/analytics.php

How can I prevent loading of the script without modifying the core files?

Upvotes: 0

Views: 262

Answers (2)

Sudhir Sapkal
Sudhir Sapkal

Reputation: 1038

Joomla does not add google analytics code at all on fresh installation.

So You need to check below stuff and make sure it is not a browser extension :)

  1. Firstly check template which you are using are not enabling the google analytics. Most of Joomla template does have google analytics option.

  2. If above case is not true then , You need to check the index.php file of template ? Might be someone have added script tag there it self in head section.

  3. If above both two case are failed then it might have chance of any system plugin triggering off which loads that google analytics code. So you need to disable that plguin by going to Administrator->Extensions->Plugins. Add filter of system plugin and disabled it.

Upvotes: 3

herrmarek
herrmarek

Reputation: 805

Sorry for the confusion: it turns out, it wasn't Joomla after all, but a Browser extension that loaded the script.

In my case it was Contrast Ratio Checker for Chrome.

Upvotes: 1

Related Questions