metakgp / metakgp-wiki

Dockerized source for the metakgp wiki.
https://wiki.metakgp.org
GNU General Public License v3.0
23 stars 20 forks source link

Find a New Way to Update Popular and Trending Pages #111

Open harshkhandeparkar opened 1 year ago

harshkhandeparkar commented 1 year ago
shikharish commented 11 months ago

What is the difference between the Popular and Trending sections?

harshkhandeparkar commented 11 months ago

Popular is the list of all-time most visited pages and Trending is list of pages with recent spikes in traffic.

shikharish commented 11 months ago

Does the popular section use an extension?

In update_top_trending.sh, it uses a script pwb.py but I cannot find it anywhere. image

harshkhandeparkar commented 11 months ago

Does the popular section use an extension?

I don't think so. Just the newest pages section uses an extension.

In update_top_trending.sh, it uses a script pwb.py but I cannot find it anywhere.

pwb.py just calls PyWikiBot. The login and updatestatistics are the main scripts. pwb.py will be installed on build.

shikharish commented 11 months ago

Pls assign me this issue.

harshkhandeparkar commented 11 months ago

Go ahead!

shikharish commented 11 months ago

Popular and Trending pages both use the same script. Both are broken. Maybe edit the issue title to add Popular pages too.

shikharish commented 11 months ago

@harshkhandeparkar We can use another Google Analytics extension to fix this, but that raises privacy concerns. This is from the extension page:

The GoogleAnalyticsMetrics extension may not be appropriate for your site if you have data security and privacy concerns. The extensions inserts JavaScript code in each page served, and the code causes the client to contact Google services to process and aggregate data. Your site's users will be subjected to tracking and data mining regardless of the Do Not Track or Global Privacy Control browser settings.

Should we use this?

harshkhandeparkar commented 11 months ago

Ideally not. Is there any extension that tracks page views without using any external service?

shikharish commented 11 months ago

Ideally not. Is there any extension that tracks page views without using any external service?

Not one I could find. There is a TopTenPages extension but that only counts unique page views and arranges acc to all time.

harshkhandeparkar commented 11 months ago

Ideally not. Is there any extension that tracks page views without using any external service?

Not one I could find. There is a TopTenPages extension but that only counts unique page views and arranges acc to all time.

Is there any way to expose an option to the user to disable google analytics?

shikharish commented 11 months ago

Could not find any.

harshkhandeparkar commented 11 months ago

Can google analytics be configured to only record anonymous view count and nothing else?

shikharish commented 11 months ago

Yes we can specify which metrics we want the extension to record.

harshkhandeparkar commented 11 months ago

Then I think we can go ahead with this.

shikharish commented 11 months ago

Alright lets do this!

shikharish commented 11 months ago

@harshkhandeparkar Turns out it is not possible to configure which metrics we want to send in Google Analytics. It would include many metrics which are neither needed nor privacy focused. I say we remove the Trending pages section completely. We can replace the Popular pages with a simple extension like HitCounters.

harshkhandeparkar commented 11 months ago

@harshkhandeparkar Turns out it is not possible to configure which metrics we want to send in Google Analytics. It would include many metrics which are neither needed nor privacy focused. I say we remove the Trending pages section completely. We can replace the Popular pages with a simple extension like HitCounters.

Would it be possible to integrate the HitCounters page on the main page?

shikharish commented 11 months ago

Yes, we could make a template from it.

harshkhandeparkar commented 11 months ago

Yes, we could make a template from it.

Nice. Go ahead with this.

harshkhandeparkar commented 2 months ago

@shikharish any update?