Support » Plugin: Google Analytics Post Pageviews » Saving to a Custom Field

  • Resolved ben1028

    (@ben1028)


    I am using the Post Pay Counter plugin which can track writers’ article’s performance. It can add together pageviews an article gets, but it does not actually does the counting and needs to extract it from Custom Fields provided by a third party plugin such as this. Is there a way to save the page views in a Custom Field?

    I found a plugin that will save to a Custom Field (WordPress Stats View Counter), but it extracts page views from Jetpack stats. I prefer getting the views data from Google Anayltics 🙂

    https://wordpress.org/plugins/google-analytics-post-pageviews/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author maximevalette

    (@maximevalette)

    Hi,

    Pageviews are not stored in the database but in the WordPress cache system (which is by default in the DB but can be in faster systems also). You can fetch them easily with the get_transient method.

    You could also modify the script in order to add a line around line 527 to set a custom field value. Any PHP dev could do that easily.

    I also need something like this. I am not a PHP dev and was hoping there is existing code I can just patch into the script 🙂

    maximevalette, can you do this revision for me? I am willing to pay for your time to revise the script.

    Plugin Author maximevalette

    (@maximevalette)

    Sorry, unfortunately I don’t have the time to do it, but there are plenty of freelancers available on platforms like Upwork that will do it for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Saving to a Custom Field’ is closed to new replies.