• Resolved opeedo

    (@opeedo)


    We switched our website completely to AMP last week and immediately, we saw a sharp decline in traffic, we have experienced this in the past, and I saw some other complaints from some people about the same issue.

    It seems jetpack has issue capturing jetpack traffic effectively.

    • This topic was modified 4 years, 6 months ago by Yui.
    • This topic was modified 4 years, 6 months ago by Yui. Reason: There is special field for links

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support KokkieH

    (@kokkieh)

    Hi there,

    I don’t see the Jetpack stats tracking pixel anywhere in your site’s source code.

    Jetpack, like many other plugins, uses a function called wp_footer() to insert elements like a Stats tracking code to your site’s footer. This function has to be added to your theme’s footer.php file, right before the closing body tag. You can read more about it here.

    If you’ve recently edited that file in your theme, make sure the wp_footer() function is still there. If it is there, you’ll want to check for other code you may have added to your theme (like in your sidebar for example) that may break everything that comes after.

    https://jetpack.com/support/wordpress-com-stats/#troubleshooting

    Thread Starter opeedo

    (@opeedo)

    Thank you for the swift response. I check my source code and I see some amp elements there, if the Pixels needed to track WP stats is missing can you paste it here and tell me where precisely to place it on my website so that I can effectively track my statistics.

    It is very important because we have migrated our site to make it completely AMP.

    • This reply was modified 4 years, 6 months ago by opeedo.
    Plugin Support KokkieH

    (@kokkieh)

    You need to make sure the make sure the wp_footer() function is present in your theme’s footer.php file, as I explained above.

    I’m not able to help you with the code you need to do this. Please contact whoever created your current theme for help with this.

    Thread Starter opeedo

    (@opeedo)

    The wp_footer() is present on my website please take a look at my footer script below
    ______________________________________________________________________________________

    </div><!–mvp-main-body-wrap–>
    <footer id=”mvp-foot-wrap” class=”left relative”>
    <div id=”mvp-foot-top” class=”left relative”>
    <div class=”mvp-main-box”>
    <div id=”mvp-foot-logo” class=”left relative”>
    <?php if(get_option(‘mvp_logo_foot’)) { ?>
    “>” alt=”<?php bloginfo( ‘name’ ); ?>” data-rjs=”2″ />
    <?php } else { ?>
    “>/images/logos/logo-large.png” alt=”<?php bloginfo( ‘name’ ); ?>” data-rjs=”2″ />
    <?php } ?>
    </div><!–mvp-foot-logo–>
    <div id=”mvp-foot-soc” class=”left relative”>
    <ul class=”mvp-foot-soc-list left relative”>
    <?php if(get_option(‘mvp_facebook’)) { ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jetpack not working well on AMP Website’ is closed to new replies.