Hi again! I repoted an issue a year ago about private auth losing its connection – https://www.ads-software.com/support/topic/private-authorization-method-keeps-on-losing-its-connection-to-google-analytics/
And you kindly increased the threshold before it did this, and it did work mostly for a long time, but I find now it is again disconnecting every week and losing its settings ??
I wonder if the the new GA4 version will use the same auth method and have the same problem, or will it be a new thing? In which case I’ll simply wait!
I also wonder if we could somehow add an email or other alert somehow when the auth fails and is wiped? It’s not a big issue to reconnect it, but sometimes a day or two will pass before it is noticed and then people are angry!
Also, is Public Authorization any more robust in this sense? Will it disconnect and wipe its setting less than Private? I see you recommend Private Authorization but I wonder if there’s any reason not to use Public if we don’t use anything other the default settings? i.e. Is the data secure with Public? Any other disadvantages?
Thanks again for all your work on this.
]]>Hi!
Now with GA *edit: UA deprecating in the summer, any plans on making Toplytics compatible with GA4?
Thanks!
]]>This is a great plugin from a great team! And it is free! Kudos!
I was trying this and I noticed a bug.
On the widget, when you save, it automatically activates these 2 options:
Display post views?
Load via Javascript AJAX?
Unselect them and save again, it still activates them
]]>Hello,
I just updated to 4.0.10 from 4.0.9 with wp-cli and it deleted my custom.template.php file!
Can you please correct this?
Cheers!
]]>Hello,
I’m trying to start using Toplytics but the installation guide (for private authorization) is not up to date anymore and it makes this whole process more pain in the ass that it should.
When creating “OAuth consent screen” it wants you to choose between Internal or External? Which one I should choose? After that there is few more steps to configurate like this if I like to push my “application” out:
Push to production?
Your app will be available to any user with a Google Account.
You’ve configured your app in a way that requires verification. To complete verification, you will need to provide:
– An official link to your app’s Privacy Policy
– A YouTube video showing how you plan to use the Google user data you get from scopes
– A written explanation telling Google why you need access to sensitive and/or restricted user data
– All your domains verified in Google Search Console`
The Private Authorization method keeps on losing its connection to Google Analytics without any updates to the website at all, like it just vanishes.
I can add it again and it works for a while then goes again.
It’s a roots.io multisite so maybe that’s something to do with it? There’s no template.php file at all, so that’s not being overwritten – where does the plugin store its credential information?
Hello,
This is not a question but I wanted to share my experience with configuring Google API for the use of Toplytics with Private Authorization.
Indeed, what is presented in the doc is not totally up to date (I guess Google makes regular changes to its process): https://www.presslabs.com/docs/code/toplytics/installation/#private-authorization
At some point when you follow the doc you end up in the OAuth Consent screen section and you have to select the scope of the app. Click on “Add a scope”, filter for “analytics” and choose analytics.readonly, described as “See and download your Google Analytics data”.
It seems to be the only scope which is needed.
Thanks again for the great plugin!
]]>Hello !
I try to use this plugin but after completing the setup steps, I still cannot choose a GA user profile. I get the error: “… there are no profiles to select for this account…”. But there are profiles (views) in my GA account (not created by me but I see them).
Compared to the setup guide on presslabs.com, I have two differences:
I installed the plugin on my dev site (example.pro) whereas the analytics should come from the prod website (example.com).
I tried both sites as Authorized JavaScript origins
The Authorized redirect URI is made with dev site URL.
I wanted to install it on the prod site to see if it can connect but the PHP version is too old (I am not responsible for the server configuration).
The setup process on G API has changed compared to Presslabs’ guide: for the OAuth consent screen, you are now required to select the scope of the app. I tried with only “View and manage your Google Analytics data” but also with selecting all scopes from /auth/analytics but nothing worked.
I activated debug log on my site but saw nothing…
Any help here please ?? ?
]]>When I went to verify with Google Analytics, I received the message and went no further. “The app is requesting access to sensitive info in your Google Account. Until the developer ([email protected]) verifies this app with Google, you shouldn’t use it.”
Any suggestions?
]]>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
Hi,
We have run the query through https://ga-dev-tools.web.app/query-explorer/ as you suggested to a previous support query and we can see that the results are, more or less, what we’d expect, a few anomalies but nothing major.
However, no matter what settings we choose in the plugin settings, it appears to be completely ignoring what’s returned and trying to show a top 5 that has no resemblance to what should be getting returned from GA but do match what’s at “/wp-json/toplytics/results”.
When we press “Update Top” the url changes to “?page=toplytics&status=error”, but there’s no error showing (doesn’t appear to be anywhere for an error to show). It is connected to GA but Last updated is ‘never’ and fetched from ga is ‘-‘.
Any suggestions?
]]>Hello again,
Thanks for a great plugin. I have a question about the realtime top option:
Realtime Top: Enables the fetch of the most visited posts in realtime from Google Analytics in the local DB. Default: Disabled
I have checked this box, and the ‘Daily Top’ also.
I’m using this code:
<?php
if ( function_exists( 'toplytics_get_results' ) ) {
$toplytics_args = array(
'period' => 'today', // default=month (today/week/month)
'numberposts' => 5 // default=5 (min=1/max=250)
);
$toplytics_results = toplytics_get_results( $toplytics_args );
}
?>
Which provides me with a pretty unchanging list of posts (that don’t seem to match up in Google Analytics for either today, or yesterday! It’s close but I can’t see what period it is selecting?).
If I uncheck the ‘Daily Top’ then it times out when trying to do an ‘Update Top’.
So my questions are:
Do I need to check Today and Reatime in settings? Or just realtime should work?
Does the Realtime option require extra scope permissions in the oAuth connector other than ‘Google Analytics API /auth/analytics.readonly -See and download your Google Analytics data’?
As I’m not using the widgets, but the code above, do I need to set the ‘today’ to something else to enable the realtime option? Or do anything else?
If I can’t get realtime to work, then is the ‘today’ option the last 24 hours, or the last complete day – i.e. from now backwards 24 hours, or the complete day before, or maybe from midnight until now – you see what I’m getting at!
Essentially it seems like the list I’m getting doesn’t change throughout the day, and we’d like it to!
Ralph
]]>Hi there,
I installed the plugin and set it up connecting to GA fine, but I’m using a theme that isn’t widget aware:
“The theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change.”
This means the widget link on the settings page for the plugin doesn’t work (broken link to https://www.mywebsite.com/wp/wp-admin/%7B!!%20admin_url(‘widgets.php’)%20!!%7D)
So I followed the instructions to use the function in a template directly:
“How can I use the plugin functionality outside the sidebar? The plugin offers 2 functions that can be used either in the theme or by another plugin.”
https://www.presslabs.com/docs/code/toplytics/how-to-use-toplytics/
Using this code:
<?php
$toplytics_args = array(
'period' => 'month', // default=month (today/week/month)
'numberposts' => 7, // default=5 (min=1/max=250)
'showviews' => true // default=false (true/false)
);
if ( function_exists( 'toplytics_results' ) )
toplytics_results( $toplytics_args );
?>
But this fails as the ‘function_exists’ is false.
Is there something I’m doing wrong? The theme is also a Roots/Bedrock/Sage variety, not sure if that’s relevant?
Thanks for any help.
]]>Hello,
I am trying to test Toplytics with Bedrock. What I did was to install bedrock and then using composer to install 4.0.2 version of Toplytics plugin. Installation was fine, but when i try to load the site, I get following:
Warning: require_once(/var/www/domains/mydomain.com/vhosts/bd/htdocs/web/app/plugins/toplytics/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/domains/mydomain.com/vhosts/bd/htdocs/web/app/plugins/toplytics/toplytics.php on line 58
I checked the file and that line and I see this code:
/**
* We load the composer dependencies at this stage and the
* PSR4 autoloading functionality for the components folder.
*/
require_once plugin_dir_path(__FILE__) . ‘vendor/autoload.php’;`
It looks for vendor/autoload.php, but with Bedrock composer setup I no longer see vendor/ dir inside the plugin.
Can you tell me how I can make that working without manually doing changes in plugin?
Thank you in advance!
Best regards,
Ali Nebi
Hello there
is there any new version for your plugins?
4.0.2 is the last version i have
Hello Toplytics support! Hope you are doing well.
The monthly pages views presented on my website are boosted at least 5 times compared to GA. Why is that?
Thanks in advance,
– Matt
]]>Hi
When I try to upload my .json file: https://i.postimg.cc/9fzmSzST/toplytics-2.jpg the same page refresh and return here: https://i.postimg.cc/JhgrWMVF/toplytics-1.jpg
Nothing more…
Thanks
]]>any new version higher than 4.0.2?
]]>Hello!
I get this error message :
“Toplytics plugin was disconnected! Possible reason: Google Analytics Error[35]: Unknown SSL protocol error in connection to accounts.google.com:443 !”
Thanks,
Matt
]]>Hi, we are using toplytics 4.0.0 with Private Authorization method.
Looking at the json results file, we do not see any corrispondence with google analytics dashboard. Can you help me how to find json results in analytics?
Thank you
Flavio
Hi, we installed toplytics 4.0.0 on a WP 5.2.5 web site.
PHP versione installed: 7.2.19
We were able to connect to Google Analytics with the private Authorization method.
The top posts Fetched from google in the overview tab of the plugin are 16 in this moment.
But if we try to use Toplytics widget, the “Statistic period” select is empty and on the front end it does not display anything.
Same thing if we try to use the shortcode or php code inside a template file.
If we link to the result endpoint shown in the settings tab, it shows “null” on the browser, the list is empty.
What should we do to fix this problem?
Thank you!
Flavio
We are considering to use this plugin but we are wondering how to display the most visited post “per language” on a multilanguage site.
Is there a way to filter data from analytics?
Thank you
Flavio
Hi guys,
I received this notification:
Toplytics plugin was disconnected! Possible reason: Google Analytics Error[35]: Unknown SSL protocol error in connection to accounts.google.com:443
What can be the reason and how can I avoid it in the future?
Thank you much,
Vladimir Jurosko
Hi,
is it possible to display post from last hour?
If so how?
Best regards,
Marcus
Hey. Was just wondering why on one page it kept forcing out the viewcounts and came across this code on the shortcode class on _validate_args()
if ( isset( $args['showviews'] ) ) { // showviews (true/false - default=false)
$args['showviews'] = true;
} else {
$args['showviews'] = false;
}
That’s kinda annoying in the sense that even if you have set showviews=”false” it’s still set, and thus this forces it to be true.
If you want to handle the default like this I guess something along the lines of
if ( isset( $args['showviews'] ) && $args['showviews'] !== false )
would be better.
Thanks.
]]>Hello,
could someone explain me what exactly this shortcode will do, in terms of
update cycles and data range…
[toplytics period=”today”] ?
Will it display the most viewed articles of the last twenty four hours ?
Or the most viewed articles counted from 0.00 pm ?
Will it update every hour?
Best
P.
Hi,
Toplytics stopped working for me since last week. I tried disabled and enabled, and also reinstall the plugin, but still not working.
And the setting page only ask me to upload the Oauth file, but it doesn’t work.
I am using WordPress 5.1.1
Thanks,
Wes
Hi,
Is there a way to reset Toplytics to force it to pull most recent results for last week? Is there a cache in play?
How often does it check Google Analytics for new posts?
Thanks,
Dean
Hello!
Got the plugin istalled and working nicely now! ??
Only a minor formatting issue has arisen, it seems that in the toplist, it changes some signs. Original title is: “Potatisskal – farligt?”, in the toplist it displays “Potatisskal – farligt?”.
I′ve tried update the post-title but it doesn’t seem to make a difference. Weird thing is, that another post with “coca-cola” in the title displays just fine.
Any idea what might be behind this? I notice that there is space adjacent to the dash in the version that is changed. But can this really matter.. (?)
Best regards,
snurk
Hello!
I try to install this plugin but have troubles, when I try to “Upload Auth Config File” nothing happens. I have created API in google with, I think, appropriate permissions.
Any idea how to solve this?
Actual URL of mysite:
https://www.fragadietisten.se/snurkify/wp-admin/options-general.php?page=toplytics%2Ftoplytics.php#038;message=86b74869