Home › Forums › WoodMart support forum › Youtube videos not loaded when page is cached
Youtube videos not loaded when page is cached
- This topic has 11 replies, 2 voices, and was last updated 2 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
May 18, 2022 at 12:59 pm #376767
metuzaParticipantHello,
I have noticed that my youtube videoes is not loaded when page is cached using WP Rocket. Check out this url: https://www.villmarksbua.no/produkt/kniv-og-verktoyslipere/knivslipere/elektriske-knivslipere/ken-onion-knivsliper-elite/ – Then find the video link in the main picture.
I have the same issue in all my 3 websites, any idea what can cause this?
Brgds
RuneMay 18, 2022 at 2:56 pm #376813
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
May 18, 2022 at 3:35 pm #376839
metuzaParticipantOk, i have added the requested information and deactivated all plugins.
Brgds
RuneMay 18, 2022 at 3:49 pm #376851
metuzaParticipantHi again,
I just did a test on my third site and it seems like problem is related with “WooCommerce Google Analytics Integration”. A plugin i am using on all my sites and when deactivated videos loaded ok.
Brgds
RuneMay 18, 2022 at 3:51 pm #376852
Artem TemosKeymasterIt works with WP Rocket at the moment https://gyazo.com/872c13f83d09c0528ae5e1b0740d9f40
May 18, 2022 at 4:10 pm #376864
metuzaParticipantYes, there is a conflict with WooCommerce Google Analytics Integration. When i activate that plugin then it get problems with videos in all my 3 sites. If i deactivate that plugin then it works ok in all sites.
Brgds
RuneMay 18, 2022 at 4:18 pm #376869
Artem TemosKeymasterWe activated this plugin on your website and the video still works correctly.
Kind Regards
May 18, 2022 at 4:28 pm #376876
metuzaParticipantYes it works now and then. If you refresh the page and click video button it will work mostly. But if you scroll down a bit and then click video button it will not work. At first i thought it was something with WP Rocket delay js option but it did not help deactivating that option. But if i deactivate WooCommerce Google Analytics Integration there is no problems on any products with videos.
But issue is wierd as it appear differently on desktop / mobile and if you scroll page or not. And also sometimes nothing helps, whatever you do no video is loaded, unless the analytics plugin is deactivated then it works perfect.
Brgds
RuneMay 18, 2022 at 4:51 pm #376891
Artem TemosKeymasterIt looks like this plugin modifies the Youtube video URL and breaks it. That is why the video doesn’t work. https://gyazo.com/53858f4fa6fd53e49918881d7273eccc
May 18, 2022 at 5:06 pm #376893
metuzaParticipantYes, WooCommerce Google Analytics Integration does something wierd but only if page is cached. If no cache then it loads video ok. And issue appear only on youtube videos. Vimeo works ok.
And videos added straight into page using video element works also ok.
Rune
May 18, 2022 at 5:24 pm #376909
metuzaParticipantOk, it is google analytics that is adding: &_ga=1.3892897.20937502.9237834 to the video urls and this makes it block loading. So i belive everyone using google analytics gtag has this problem in combination with cache.
Rune
May 19, 2022 at 9:16 am #377041
Artem TemosKeymasterYes, you are right. Maybe you would better contact plugin developers for help on this matter.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register