Viewing 3 replies - 1 through 3 (of 3 total)
  • I will also chime in here as this just occurred to me today on how to count the views from pages being served via /amp endpoint with the Automattic AMP plugin.

    While it’s possible to add the shortcode to the AMP template (not yet tested), this would of course generate separate ‘hit’ presumably, perhaps not lined up with original?

    If the ‘hit’ increments based on post ID, and /amp is just alternate view, might work if writing to same data field.

    Worth more testing on this, as it’s going to be important moving forward.

    Plugin Author Lester Chan

    (@gamerz)

    You can try adding the following to your theme function.php

    do_action( 'amp_post_template_head', 'process_postviews' );

    Hi, Lester
    thanks – will give that a try 🙂

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

The topic ‘Accelerated Mobile Pages’ is closed to new replies.