Product video page that loads endlessly when Google Analytics tracking is instal
-
Hello
When I go to a page with Google analytics installed, the video on the product page loads endlessly. I did multiple tests and that’s how I saw this bug.
In the meantime I’ve removed it from the product pages to make it work. You’ll have to let me know when you want to do a test.
-
This topic was modified 6 months, 2 weeks ago by
webiaprod.
Hello,
Please disable any plugins not directly related to our theme and provide us with your admin access details. We will log in to your dashboard and investigate the issue. Please ensure that you only keep the following plugins that are necessary for our theme to work correctly:
– WoodMart core
– WooCommerce
– Elementor/WPBakery Page Builder
Thank you in advance.
Hello,
As explained, this was part of my tests. I can confirm that the bug occurs with Google analytics.
We need a solution to stop product videos loading in a loop when the analytics script is active on the page.
Thnaks,
I give you the access below
Sorry, but we can’t connect with the password provided.
I don’t know why, but when I send you the password it doesn’t appear in the same way in the private area. I’ve made you an account with a simpler password. Probably because of the special signs like percentages.
To fix this issue, try to add the following code snippet to the Custom JS on document ready area in Theme Settings.
if (document.querySelector('.woocommerce-product-gallery .wd-carousel-item.wd-with-video') ) {
const tag = document.createElement( 'script' );
tag.src = '//www.youtube.com/iframe_api';
const firstScriptTag = document.getElementsByTagName( 'script' )[0];
firstScriptTag.parentNode.insertBefore( tag, firstScriptTag );
}
Thank you very much for your reactivity! It solved my problem.
The topic ‘Product video page that loads endlessly when Google Analytics tracking is instal’ is closed to new replies.