Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Add HTTP and HTTPS counts by default? #4

Closed
joelpurra opened this issue Sep 9, 2015 · 1 comment
Closed

Add HTTP and HTTPS counts by default? #4

joelpurra opened this issue Sep 9, 2015 · 1 comment

Comments

@joelpurra
Copy link
Member

There's a share count mismatch between http and https urls for (some) social networks. This means that even if a website (like meddelare.com) which always redirects to https gets shared with a http link (for any reason), the share count will be lower than expected.

My suggestion is to add automatic addition of the counts in meddelare-node-counters, where it would also be known which networks need separate http/https count requests.

  • Does any social network merge http and https counts internally?
  • Is it ok to have the default be to merge http and https? To me it seems like something to opt out of, rather than opt in to.

Websites which do not strictly redirect to either http or https would also benefit (be able to display higher share counts) from this change.

For websites strictly using (either http or) https, there might be other ways to solve this problem -- perhaps by (somehow) forcing social networks to re-index the http url, which would then redirect to https and make sure the the canonical url has been set to use https. Any concrete suggestions?

Domain url examples

It looks like Twitter and Facebook doesn't add http and https counts, while Google Plus does (the small difference below can be due to internal caching).

meddelare.com

https://meddelare.com/

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=http://meddelare.com

{"facebook":0,"googleplus":4,"twitter":20}

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https://meddelare.com

{"facebook":6,"googleplus":4,"twitter":4}

dnssec-name-and-shame.com

https://dnssec-name-and-shame.com/

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=http://dnssec-name-and-shame.com/

{"facebook":3,"googleplus":1,"twitter":97}

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https://dnssec-name-and-shame.com/

{"facebook":3,"googleplus":1,"twitter":13}

google.com

https://www.google.com/

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=http://www.google.com/

{"facebook":13160903,"googleplus":12805587,"twitter":24278126}

https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https://www.google.com/

{"facebook":721225,"googleplus":12805577,"twitter":339447}
@joelpurra
Copy link
Member Author

Closing due to Meddelare project shutdown (meddelare/meddelare-superproject#8).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant