Some Javascript files don't seem to be minified.

Posted in: Newspaper
Post count: 49

How can i solve this problem ?

“Google Analytics” does not work when i remove <!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-1XXXXXXXXX”></script&gt;

https://www.screencast.com/t/8MsBwaDbVtC0

https://www.screencast.com/t/9iPXTH0aq

Thenk you!

Post count: 35449

Hi,

Please check this article about How to Minify CSS / JavaScript Files in WordPress -> https://www.wpbeginner.com/plugins/how-to-minify-css-javascript-files-in-wordpress/

Thank you!

Post count: 49

How to add code into newspaper theme ?

Post count: 35449

Hi,

That depend of the type of the code you want to insert, for css, javascript and html you can insert the code in Theme panel -> https://www.screencast.com/t/Rn7759OyL

Thank you!

Post count: 49

Thenks but,

I asked depending on the subject above. My website is slowly opening due to Google Analytics TRACKING code.

https://wpfixit.com/google-analytics-slow/

I applied the information in this article. But google does not analyze my website. So, the problem persists

Post count: 35449

Hi,

So you want to insert a code for Google Analytics, for this you’ll need to set the code here -> https://www.screencast.com/t/2uIbdxQ6kCQ

Thank you!

Post count: 49

I don’t want to add with this step. Is there another way to add it?

Post count: 35449

Hi,

Unfortunately that is the only place where you can set the code for Google Analyticsin our theme panel.
Setting the code in the Google Analytics -> https://www.screencast.com/t/2uIbdxQ6kCQ is like you set the code directly in theme files and the code will not be overwrite as in them file after each update.

Thank you!

Post count: 49

I did as you said; thenks.

I solved the problem with the following plugin:
https://wordpress.org/plugins/cache-external-scripts/ Cache External Scripts

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.