Twitter counter staging of wpengine works and does not work in real


#1

Hello!

I have a problem with the tweets counter, I know that there are many open forums but do not solve anything :frowning:

I’m using WPENGINE, so I have two websites, the web of staging and real. My problem is that having the same code…the counter works in staging and in real does not work. I’m not sure why it may be, I take a long time.

I’m using a wordpress plugin “AddToAny” I thought it might be that but using only the button that provides Twitter does not work.

Thanks for your help!


#2

Which counter is this?


#3

The data-counturl parameter of the Tweet button markup affects the URL used to display share count.
https://dev.twitter.com/web/tweet-button/parameters#share-param-counturl

The link rel=canonical of the page is used by Twitter and search engines to determine the proper reference for the page.
https://support.google.com/webmasters/answer/139066#2

Both URLs should be the same on staging and production to affect the share count component of the Tweet button.

The share count component of the Tweet button will soon be removed. If you enjoy tinkering and finding a solution you may want to limit your time invested.


#4

This is Tweet count of staging

This is Tweet count of production (The post has been shared but is always zero.)


#5

I don´t understand why in staging works and production don´t works :frowning:

I tried all that and still not working

Thank you!


#6

I need to show the counter :frowning:


#8