WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics Post Pageviews
Two errors, and a question (9 posts)

  1. immanence
    Member
    Posted 1 year ago #

    1. The plugin settings page tells me to put this code in the template:
    <?php echo gapp_get_post_pageviews(); >
    It should be:
    <?php echo gapp_get_post_pageviews(); ?>

    2. On the plugin settings page, I have "None" in the pulldown for "Use this website to retrieve pageviews numbers:" I'm pretty sure I followed your set up instructions to the letter, including the Google API Project setup. On my site, I have 0 page views for posts I know are being viewed.

    3. Question: Will this plugin play well with W3 Total Cache, which I have implemented on my site? I also use Cloudflare.

    Thanks for your time

    http://wordpress.org/extend/plugins/google-analytics-post-pageviews/

  2. AngieP
    Member
    Posted 1 year ago #

    Yes, the code should obviously be:
    <?php echo gapp_get_post_pageviews(); ?>

    But then it works fine, also with W3 TC!

    Thank you for this great plugin.
    Angie

  3. AngieP
    Member
    Posted 1 year ago #

    Oops, spoke too soon...

    How to keep the API token alive, that's the issue now.
    Pageviews show only once and do not update, until the next disconnect-reconnect.

    Any ideas?
    Thanks in advance,
    Angie

  4. AngieP
    Member
    Posted 1 year ago #

    UPDATE:

    We didn't take the caching into consideration.
    Once the cache is flushed, the new views appear.
    Works fine for us!

    Thanks again,
    Angie

  5. kjkdfdsfos
    Member
    Posted 11 months ago #

    I have used your plugin and found that
    <?php echo gapp_get_post_pageviews(); ?>

    doesn't work at all and where I put it in my wordpress theme, page die after that.

    waiting for you positive response.

    I hope you will reply.

  6. asimac2001
    Member
    Posted 11 months ago #

    @kjkdfdsfos, you should provide more info when saying something doesn't work... I just installed the plugin and I am using it with no problem.

    Have you followed the instructions and created a project at google APIs?

  7. asimac2001
    Member
    Posted 11 months ago #

    @plugin author - great work mate!
    Are you interested in extending plugin with more options? For example, I will be using your plugin to display page views only for last month. Instead of 'start-date' => $options['gapp_startdate'], on line 342 I used 'start-date' => date("Y-m-d", strtotime("-1 month", strtotime(date('Y-m-d')))),

    This made me thinking, your function gapp_get_post_pageviews() could be extended with lots of options...

  8. BramVanroy
    Member
    Posted 9 months ago #

    I am experiencing the same problem:

    2. On the plugin settings page, I have "None" in the pulldown for "Use this website to retrieve pageviews numbers:" I'm pretty sure I followed your set up instructions to the letter, including the Google API Project setup. On my site, I have 0 page views for posts I know are being viewed.

  9. esmi
    Forum Moderator
    Posted 9 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic