• Resolved zo

    (@zotezo)


    Hi,
    We are using the following third-party code to track the event.
    AddThis GetSiteControl,Facebook Google Analytics,Hotjar OneSignal,Other Google APIs/SDKs
    Google/Doubleclick Ads
    It is impacting on google page speed score and especially impact on AMP page rank.
    How to use that efficiently so that there will be no impact on site page speed score.

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • @zotezo thanks for your inquiry. Since you’re using a variety of plugins that we do not support, we cannot advise you on your site’s performance.

    You may want to consider seeking the help of a developer, agency, or WordPress specialist to assist with your particular site’s needs and goals.

    Thread Starter zo

    (@zotezo)

    Hi,

    /* Google Tag Manager START */
    add_action( 'wp_head','add_gtm_script_part' );
    function add_gtm_script_part () { ?>
    <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-543DQCK');</script>
    <?php }
    
    add_action( 'astra_body_top','add_gtm_noscript_part' );
    function add_gtm_noscript_part () { ?>
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-543DQCK"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <?php }
    /* Google Tag Manager END */ 

    The following codes to implement GTM causing AMP site performance in in Google pagespeed,have there any smart way to do this?
    Thanks

    Thread Starter zo

    (@zotezo)

    Hi @reneesoffice @westonrouter,
    Have there any way to unload the code which can impact on google page speed score on mobile?

    I need your help to increase my page speed rank. Though we are using AMP plugins still my page speed rank in mobile is below 40.

    How to increase the score?

    Thanks

    Plugin Author Weston Ruter

    (@westonruter)

    We recommend you engage with a developer, agency, or some other WordPress specialist to assist you.

    Thread Starter zo

    (@zotezo)

    Hi @westonruter,reneesoffice,jamesosborne,
    Same type of issue has been discussed and explained and
    https://wordpress.org/support/topic/largest-contentful-paint/
    https://wordpress.org/support/topic/amp-problem-8/
    But in our case need to discuss with developer.
    We are using your plugins and is working performing fine but if found any issue or glitch can I not post here?
    Thanks

    Plugin Author Alberto Medina

    (@albertomedina)

    @zotezo We offer support to issues that are directly related to the AMP plugin. In your issue you indicate “we are using third-party code [list] and it is impacting the page speed score”. This is not directly related to specific issues/bugs of the AMP plugin. The fact that you are using the AMP plugin does not mean that the AMP plugin support forum is the place to address all your questions.

    If you have development and performance needs, the recommendation is that you get help from engaging with a developer, agency or WordPress specialist.

    We are glad you are taking advantage of the AMP plugin. If you have questions directly related to it please formulate them here. We will answer those, and let you know when the question is outside the scope of this forum.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Third Party code tracking and impact on Pagespeed’ is closed to new replies.