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

The counter counts separately for logged users and guests #218

Open
OksanaRozsokha opened this issue Oct 31, 2018 · 3 comments
Open

The counter counts separately for logged users and guests #218

OksanaRozsokha opened this issue Oct 31, 2018 · 3 comments

Comments

@OksanaRozsokha
Copy link

No description provided.

@Ruud68
Copy link
Contributor

Ruud68 commented Oct 31, 2018

Hi, that is probably due to a different url for logged in users / guests.
counting is based on URL

@OksanaRozsokha
Copy link
Author

@Ruud68
Do you know if it`s possible to use the dynamic URL?
Сan you look here please?
#219

@Ruud68
Copy link
Contributor

Ruud68 commented Nov 5, 2018

Hi,
this is a facebook feature;
when you share url: https://mydomain/blog-one?123 and url https://mydomain/blog-one?123, these are for your site probably the same urls, but for facebook (and also linkedin) these are two different urls. Each url will have it's own share counter.

This can be solved (for facebook) in two ways:

  1. adjust the jssocials script to drop the ?xyz from the shared url so that in both cases https://mydomain/blog-one is shared (and counted)
    or
  2. set the og:url metatag to the https://mydomain/blog-one url.

og:url works the same as the canonical tag for google. When set, facebook will use the url set in the og:url metatag as the url for the share count.

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

No branches or pull requests

2 participants