• Resolved indyparker

    (@indyparker)


    Hi Toplytics Team,

    I am considering using your plugin to replace another Popular Posts plugin. But I have some questions.

    1. Does your plugin work with Cloudflare installs?
    2. Is it possible to add images (Featured Image) of each popular post to your widget as an option?

    We want to create a ‘TRENDING’ table with

    [1] Image [2] Image [3] Image
    Title Title Title

    Please advise.

    Regards,
    Indyparker

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Presslabs

    (@presslabs)

    Hello @indyparker,

    1. Yes it works. So far we are not aware of any incompatibility using Cloudflare;
    2. Yes, you can edit the template to also include the featured image inside of it. You can find more settings related to this on the Settings page of the plugin after install and connection to GA.

    Here is the default template as an example. You can modify this to fit your needs.
    https://github.com/presslabs/toplytics/blob/master/src/resources/views/frontend/widget.template.php

    Thread Starter indyparker

    (@indyparker)

    Hi,

    Thanks for your reply.

    Does the plugin have the ability to display posts published during a certain page range? Like last 7 days? Or Last 30 days?

    Basically, I want to emulate the WordPress Popular Posts plugin but with GA. So, any help with this will be highly appreciated.

    Regards,
    IndyParker

    Plugin Author Presslabs

    (@presslabs)

    Hello @indyparker ,

    Yes, there are 4 data ranges available:
    1 day, 7 days, 30 days, and “realtime” (which is actually coming from the Real-Time Google Analytics reporting API).

    EDIT:
    You can see the date ranges here: https://github.com/presslabs/toplytics/blob/master/src/components/Backend.php#L1132

    • This reply was modified 3 years ago by Presslabs. Reason: add additional info with github pointer
    Thread Starter indyparker

    (@indyparker)

    Hi,

    I’m trying to set-up the Private Authorisation and following your guide here:

    https://www.presslabs.com/docs/code/toplytics/installation/

    But the Google project API screen is different or has changed since this documentation.

    CREATING CREDENTIALS:

    1. OAuth Consent Screen first asks this:

    https://prntscr.com/20wryhz

    2. After selecting ‘External’ as it seems like the right one? I get this:

    https://prntscr.com/20ws1f9
    https://prntscr.com/20ws2r0

    Please advise on how I can get this working. Plus anything else I need to do with this.

    Regards,
    Indyparker

    • This reply was modified 3 years ago by indyparker.
    Plugin Author Presslabs

    (@presslabs)

    Hello @indyparker ,

    1.
    Both internal and external should work for your personal use – in this case you will be the only person connecting via this oAuth project.

    2.
    I am not 100% but I believe if you go the internal use route you’ll no longer need to provide all these policy links etc. Yet you can skip these because you’ll only be running this for your own oAuth sessions hence you will run it in the testing mode without the need to submit it to Google for review. So just provide the basic required fields like your e-mail etc and it should be fine.

    Let me know how it goes.

    Thread Starter indyparker

    (@indyparker)

    Hi,

    It’s set up I think!

    This is what I got:

    https://prntscr.com/20wvf7p

    https://prnt.sc/20wvbu5

    Please let me know if this is correct?

    Thanks

    Thread Starter indyparker

    (@indyparker)

    Hi,

    When I click on Widgets Management, it gives me a 404 error.

    With a url like this:

    https://www.xyz.com/wp-admin/%7B!!%20admin_url(widgets.php

    Any ideas?

    Plugin Author Presslabs

    (@presslabs)

    Looks like the admin URL is malformed.

    That button simply sends you to Appearance > Widgets where you should find the Toplytics widget.

    Thread Starter indyparker

    (@indyparker)

    Hi,

    I have a few key questions related to using your plugin now.

    1. Why are the results showing post 1 as the lowest views and post 10 as the highest, in a 10 post list? How can this order be changed to highest views first?

    2. I have ‘display post views’ unchecked in the widget but it still shows the views under each post title.

    MOST IMPORTANT TASK:

    What I am trying to do is the following:

    I need to produce a TRENDING popular posts widget that can output the posts that have been published within a certain time period e.g. posts published in the last 7 days, 30 days etc.

    Therefore, the output needs to show posts that have been published in the above time period, not from the date they were published. Because at the moment I see very old posts showing that I do not want to include. The widget needs to as ‘fresh’ as possible.

    Therefore, I need to filter by ‘post date’.

    It would be great if you had it as a feature on your plugin. See here for the WP Popular Posts widget:

    https://prntscr.com/20wz9g0

    What is the most optimal way to do this?

    Your help with this is highly appreciated.

    Regards,
    Indiy

    Plugin Author Presslabs

    (@presslabs)

    Hello @indyparker,

    The “Trending posts” feature has been requested for a long time now.
    https://github.com/presslabs/toplytics/issues/13

    This is indeed a good idea but we never had the time to actually develop it.

    As of now, you can only display Top Posts based on your GA analytics for a specific time period, last 30 days, 7 days, or 1 day + real-time.

    The RealTime option is the “closest” to a Trending you can get using the current plugin version, yet this only takes the last 24 hours into consideration and accounts for All posts, so there is no actual filter. So this is more of a “Hot Now” widget.

    Regarding your other question about “Views” being displayed regardless, please check the template file that contains the instructions. This is where you can also update it to display as you’d like, for example, you can add featured images, hide views count, etc.
    https://github.com/presslabs/toplytics/blob/master/src/resources/views/frontend/widget.template.php

    Thread Starter indyparker

    (@indyparker)

    Hi,

    Thanks for your reply.

    I’ve tried editing the template but not getting much joy as I am not hugely technical.

    Do you have the code/template that can do the following?

    1. Display 10 Most Popular Posts

    2. Two rows: 5 in a row – 1,2,3,4,5 (row 1), 6,7,8,9,10 (row 2)

    3. Featured image thumbnail with post title below it for each post in this table.

    Your help with this is highly appreciated.

    Regards,
    Indy

    Plugin Author Presslabs

    (@presslabs)

    Hello @indyparker,

    We don’t have other templates as of now, only the standard one that is text-based without a featured image.

    I have added a feature request in Github for this: https://github.com/presslabs/toplytics/issues/160

    Thread Starter indyparker

    (@indyparker)

    Hi,

    Thanks. I have left a comment supporting this.

    IndyParker

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Images for Popular Posts’ is closed to new replies.