• Resolved m0shi

    (@m0shi)


    I Saw that the last version of JetPack is compatible with amp.

    But, i got a problem with stats : the correct amp markup is generated for the stats, but there is still the html code version generated and integrated in the amp sources.

    This is what is still generated and in the page :
    <script type=’text/javascript’ src=’http://stats.wp.com/e-201624.js&#8217; async defer></script>
    <script type=’text/javascript’>
    _stq = window._stq || [];
    _stq.push([ ‘view’, {v:’ext’,j:’1:4.0.3′,blog:’xxxxxxxxx’,post:’xxxx’,tz:’x’,srv:’xxxxxx.com’} ]);
    _stq.push([ ‘clickTrackerInit’, ‘xxxxxxxxx’, ‘xxxx’ ]);
    </script>

    Is it a bug or a problem with my wordpress ?
    Thank you.

    https://wordpress.org/plugins/jetpack/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.com/contact-support/

    Could you also let me know what version of the AMP plugin you’re using, and what version of Jetpack?

    Thanks!

    Thread Starter m0shi

    (@m0shi)

    You can see here one example of amp article : http://blog.m0shi-m0shi.com/voyages/gifu/takayama/balade-matinale-takayama-vieux-quartier-sanmachi-suji-sanno-matsuri/amp/

    The amp plugin version is 0.3.2 et the Jetpack is 4.0.3.

    Thanks for your time.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    Thanks for the extra details.

    I can’t seem to reproduce the issue on my own test site, but I noticed you’re running additional plugin that may change the way AMP pages are generated on your site.

    Could you try to deactivate the Glue and Pagefrog plugins for a few minutes, to see if these plugins add the Stats code to the template?

    If that doesn’t help, could you try to deactivate your caching plugins, and let me know how it goes?

    Thanks!

    Thread Starter m0shi

    (@m0shi)

    I desactivated the Glue, Pagefrog and wp super cache plugins.
    I see no change.

    I keep then desactivated if you want to check.

    Thanks again for you help and time.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    That’s weird. Could you try to deactivate all other plugins, one at a time, and let me know if you find a conflicting plugin?

    Thread Starter m0shi

    (@m0shi)

    You’re right, I found the plugin : NextGEN Gallery ! Like often ๐Ÿ˜ฎ

    If i turned it off and the stats modules on, everything is fine.
    If i turned Jetpack off and NextGen Gallery on, the amp page is correct.

    If i keep Jetpack, but turned stats module off, the amp stats markup disapear, but there is a <div style=”display:none”></div> which stay in the code and make the amp page invalidate.

    If the both are running (Stats module and NextGen Gallery), there is the <div style=”display:none”></div> and the two javascript for the wp stats.

    You think i should report it to the NextGEN Gallery plugin team too ?

    Thanks you.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    That’s interesting. It might be worth asking the NextGEN plugin gallery team if they do anything for AMP or Jetpack in their plugin; it might help us find out more about this.

    Thread Starter m0shi

    (@m0shi)

    They seem to don’t care at all (“We do not provide specific support/compatibility code for “AMP” related pages”).

    So, i’ll try to work about that when i got more time, and i’ll keep you in touch if i found something about Jetpack (but evrything seems fine with it, if you don’t got the error on your test site).

    Again, thanks for your time and kindness.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ๐Ÿš€

    Oh, too bad. Let me know how your investigation goes!

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

The topic ‘amp and stats module’ is closed to new replies.