Jump to content
kratek

Free Module for optimization Google Analytics module to fix problem with PageSpeed Insights

Recommended Posts

If you have a problem with optimizing Prestashop for Google PageSpeed Insights, I have a solution for the Google Analytics module for you.

My module solves the problem of "Use your browser cache" for analytics.js files from Google.

Here is the installation guide and the possibility to download the free module for prestashop 1.6:

https://balcerzak.it/en/news/prestashop-module-use-your-browser-cache-for-google-analytics-module/

Let me know if the module does not work for another version of Prestashop. I will try to help You!

 

Share this post


Link to post
Share on other sites
Posted (edited)

Spróbowałem użyć tego modułu i nie rozumiem tego warunku bo nawet jak oryginalny plik ganalytics/ganalytics.php będzie istniał to moduł będzie dawał komunikat że go się nie ma zainstalowanego, to tak powinno być ?

Is that condition correct ? if file exists or no - it's always showing message that does not exists, a bit confusing.

if (file_exists($filename)) {
			echo $this->module->l('The file ') . $filename. $this->module->l(' does not exist. You do not have installed a Google Analytics module.');
		} else {
			echo $this->module->l('The file ') . $filename. $this->module->l(' does not exist. You do not have installed a Google Analytics module.');
			exit;
		}

 

Edited by kam0200
English added

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More