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 (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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