You have a few options. In the tweet button , you can set a url param in the share url which will override the url of the page.
You can also use data-url and rel canonical in . For more information on the options here: https://dev.twitter.com/docs/tweet-button#properties
I can’t quite decipher the docs on this sorry.
If I set
counturl=http://www.mysite/A, then links tweeted with and without the “www” will be counted? Or should it be the other way; where the actual URL has the “www” and the counturl does not?
Oops looks my code example didn’t come out right.
Example of tweet button with url parameter:
Make sure your url is encoded. You can something like this: http://meyerweb.com/eric/tools/dencoder/
Hope this helps.