Support » Plugin: Jetpack by WordPress.com » JetPack statistics on AMP pages

  • Resolved netconsulting

    (@netconsulting)


    Hi there,

    We have been searching but found no answer for our problem.

    Is there any way to add the JetPack statistics to the AMP pages so that the pageviews are counted?

    For Google Analytics there is a special JSON code to be included on the pages. Is there something similar por the JetPack statistics.

    Thanks for your help.

Viewing 1 replies (of 1 total)
  • netconsulting

    (@netconsulting)

    We found the solution by ourselves.

    If you’re logged in the statistics pixel is not triggered. Once logged of the pixel is included automatically by AMP:

    Example:
    <amp-pixel src="https://pixel.wp.com/g.gif?v=ext&j=1%3A5.3&blog=123456789&post=123456789&tz=2&srv=domain.com&host=domain.com&rand=RANDOM&ref=DOCUMENT_REFERRER"></amp-pixel>

    Best regards from Spain!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.