Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #108
harshkhandeparkar opened this issue Sep 30, 2023 · 20 comments
Open
Tracked by #108

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

harshkhandeparkar opened this issue Sep 30, 2023 · 20 comments
Assignees

Comments

@harshkhandeparkar
Copy link
Member

harshkhandeparkar commented Sep 30, 2023

  • The UA-XXXXXX-XX google analytics id is deprecated and hence the googleAnalytics extension no longer works.
  • Need to find a way to use the new "head" tags of Google Analytics and adapt the jobs script accordingly.
This was referenced Sep 30, 2023
@shikharish
Copy link
Member

What is the difference between the Popular and Trending sections?

@harshkhandeparkar
Copy link
Member Author

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

@shikharish
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member

Pls assign me this issue.

@harshkhandeparkar
Copy link
Member Author

Go ahead!

@shikharish
Copy link
Member

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

@shikharish
Copy link
Member

@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
Copy link
Member Author

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

@harshkhandeparkar harshkhandeparkar changed the title Find a New Way to Update Trending Pages Find a New Way to Update Popular and Trending Pages Dec 15, 2023
@shikharish
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member

Could not find any.

@harshkhandeparkar
Copy link
Member Author

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

@shikharish
Copy link
Member

shikharish commented Dec 15, 2023

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

@harshkhandeparkar
Copy link
Member Author

Then I think we can go ahead with this.

@shikharish
Copy link
Member

Alright lets do this!

@shikharish
Copy link
Member

shikharish commented Dec 17, 2023

@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
Copy link
Member Author

@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
Copy link
Member

Yes, we could make a template from it.

@harshkhandeparkar
Copy link
Member Author

Yes, we could make a template from it.

Nice. Go ahead with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants