Post Pay Counter
Possible to change the 24 hour visit rule? (5 posts)

  1. fantasyteamadvice
    Posted 2 years ago #

    My blog typically has repeat visitors many times per day, and I get paid for those ad views, and would thus like to pass along the payments to my authors.

    Is there a way to change the cookie settings so that it counts views more than once in a 24 hour period?


  2. fantasyteamadvice
    Posted 2 years ago #

    Also, I'm not a big fan of the fact that when I update one of the settings (such as which users to include in the count) it resets all of my authors views to 0.

    I'm worried that something may happen, and all of the payment information will disappear

  3. Ste_95
    Plugin Author

    Posted 2 years ago #

    As for the cookie expiration time, you change by hand line 380 of post-pay-counter.php.

    As of now, it is:
    setcookie( 'post_pay_counter_view-'.$_REQUEST['post_id'], 'post_pay_counter_view-'.home_url().'-'.$_REQUEST['post_id'], time()+86400, '/' );
    You can change 86400 with the duration in seconds you would like.

    As for your second question, it should be noted that only certain settings change trigger a stats regeneration. I understand this may not be the exact wished behaviour, and it will be fixed in future releases for sure (not more than a couple of months with a whole redesign).

    Hope this helps.

  4. fantasyteamadvice
    Posted 2 years ago #

    Ok, thanks, changed it to 600... I will see if that is too short of a timeframe.

    Another question, not sure how to phrase it properly, so tell me if it is confusing.

    My writers have been writing articles for nearly a year now, but it seems that the default "stats" screen only shows articles written in the current month. I would like to pay my authors every month for ALL page views that hit their articles, not just for the articles published that month.

    It seems I may have to go in and adjust the time frame to view since my blog started, every time that I want to pay my writers. Is that accurate? I hit the update buttons a number of times, but all that seemed to accomplish was resetting the pageviews to 0


  5. Ste_95
    Plugin Author

    Posted 2 years ago #

    I understand what you mean. First, keep in mind that the plugin only records visits since when you install it, not before. Secondly, as of now it is not available an accurate and precise visits system, you can not distinguish between visits from this month and the previous ones, they all get grouped together. Future version 2.0 (coming hopefully as soon as Christmas) will add Google Analytics integration and everything will ve much better. Sorry for the delay.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Pay Counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.