Home Forums WoodMart support forum Product video page that loads endlessly when Google Analytics tracking is instal

Product video page that loads endlessly when Google Analytics tracking is instal

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #629694

    webiaprod
    Participant

    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 11 hours, 24 minutes ago by webiaprod.
    #629712

    Artem Temos
    Keymaster

    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.

    #629716

    webiaprod
    Participant

    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,

    #629719

    webiaprod
    Participant

    I give you the access below

    #629724

    Artem Temos
    Keymaster

    Sorry, but we can’t connect with the password provided.

    #629726

    webiaprod
    Participant

    The explanations below

    #629728

    webiaprod
    Participant

    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.

    #629733

    Artem Temos
    Keymaster

    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 );
    	}
    #629744

    webiaprod
    Participant

    Thank you very much for your reactivity! It solved my problem.

Viewing 9 posts - 1 through 9 (of 9 total)