#687 – "Optimize Javascript" it blocks all the javascripts I have on the site, including Google Analytics.

Status: Closed - Category: Route 66
 Hello how are you?
I am using the free version of Route66 and it is fantastic! But when I activate the "Optimize Javascript" option on the Google PageSpeed ​​tab, it blocks all the javascripts I have on the site, including Google Analytics.

I would like to have it working with the "Optimize Javascript" option enabled, without blocking my Javascript codes. It's possible?

If you need the paid version to solve this, no problem, I can subscribe. Speaking of which, is there any difference in use in the paid version or is it just support?

Thanks!
Hi Adriano,

Which implementation of Google Analytics are you using? Is there a link to your site?
The Javascript optimization is not going to work with all scripts out there, it's not possible. But we try to cover most of them.
The paid version includes some extra features like URL based SEO analysis and support for more extensions. And of course you get access to support and updates.

Regards
 
My website is: almapreta.com

I work with helix and just inserted the codes provided by Google Analytics, within the corresponding field in Helix. The codes I'm using there are:


Before </head>

<meta name = "google-site-verification" content = "aMDxULJo1gxUIp0jR_MNJzBBzp9aC-gX7pRy68x_ZIY" />


<! - Google Tag Manager ->
<script> (function (w, d, s, l, i) {w [l] = w [l] || []; w [l] .push ({'gtm.start':
new Date (). getTime (), event: 'gtm.js'}); var f = d.getElementsByTagName (s) [0],
j = d.createElement (s), dl = l! ​​= 'dataLayer'? '& l =' + l: ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
}) (window, document, 'script', 'dataLayer', 'GTM-5XJNLHW'); </script>
<! - End Google Tag Manager ->


===========================================================
Before </body>

<! - Google Tag Manager (noscript) ->
<noscript> <iframe src = "https://www.googletagmanager.com/ns.html?id=GTM-5XJNLHW"
height = "0" width = "0" style = "display: none; visibility: hidden"> </iframe> </noscript>
<! - End Google Tag Manager (noscript) ->


I really need these codes to work together with Route66's "Optimize Javascript". If it works, I will purchase the paid version as a thank you.
Hi Adriano,

I have optimization enabled on our website and analytics work fine. However, I am not using the Google tag manager implementation, I use the regular analytics snippet.
I will take a look into this.

Have you tried to set the "Javascript Optimization Method" to "Inline" under Route 66 options just in case it makes any difference?

Regards
 
Hi! Yes, I tried an "inline" option, but it didn't work either. Thanks for the effort.
In the first message you wrote that Route 66 blocks all scripts including analytics.
Just to clarify, the optimizer combines the all the scripts to a single one, it does not block anything.
You should see a script loaded under the path /media/route66/scripts/ which should contain all your inline scripts. Including Google analytics.

Regards
 
Well, as I said before, just activate the Route66 option, so that Analytics immediately stops counting accesses. If this happens only when "Optimize Javascript" is activated, it makes no sense that he is not responsible for blocking my Analytics codes.

Anyway, thanks for taking the time to respond. As I do not believe that they can solve this here, I will close the topic and seek other alternatives. So, I no longer occupy your time. Thanks!
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review