I'm looking into using the Twitter tweet button API, found: here
I have the following code:
<a href="http://twitter.com/share" class="twitter-share-button"
data-url="http://myurl.com/howtouse"
data-counturl="http://myurl.com/howtouse"
data-text="How to use this site"
data-count="vertical"
>Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
My problem comes with the count. When I hit the 'tweet' button, the popup appears. I post to twitter all fine. The problem then comes with when I then click on the count box, which is 0.
The URL of this is: http://twitter.com/#search?q=http%3A%2F%2Fmyurl.com%2Fhowtouse%2F
Which when clicked returns no results even though I can see the tweet in my timeline.
Does anyone have any ideas why the search wouldn't find the link I shared/tweeted and why the count is 0?
Thanks
There are a number of reasons that Tweets don't show up in search that range from quality filtering to time: http://support.twitter.com/articles/66018-my-tweets-or-hashtags-are-missing-from-search
The tweet count being 0 can be an effect of caching. Generally tweet button counts take a few hours to update for performance reasons and are often inaccurate by a % as well.
Related
I'd like to find out how to embed a specific tweet + comments.
I know how to embed the whole timeline (with Twitter widgets):
<a class="twitter-timeline" href="https://twitter.com/stats_canada" data-widget-id="608870269030137856">Tweets by #stats_canada</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
but I just need to embed one tweet using that widget (if possible).
For example this particular one:
https://twitter.com/stats_canada/status/230694020031078400?s=17
You can embed that specific tweet using this code:
<blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr">The average Canadian says sorry over 45,000 times a day.</p>— Stats Canada (#stats_canada) August 1, 2012</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
However, replies are different. The current twitter API doesn't seem to allow for embedding of entire conversations. What you can do after embedding this tweet is getting the embed quote for each reply, and then unchecking the "Include parent tweet" for each embed code. You can then add each one below the original tweet.
I have used the information on this site and at this page
https://support.google.com/analytics/answer/1136920?hl=en
to add tracking on my outbound links (pictures and texts) at this page
http://virginialidar.com/index-2.html
I am trying to view them in Google Analytics (Reporting > Behavior > Events > Overview) but no clicks are showing up. I have visited the site and clicked the links may times to test. It has been about 72 hours since I added the code.
Can someone view source at http://virginialidar.com/index-2.html and see what I am doing wrong? I think it may be the image links
It looks like you've copied the "smart" quotes instead of the straight quotes. You currently have:
onclick=”trackOutboundLink(‘http://qcoherent.com/evaluation.html’); return false;"
When it should be...
onclick="trackOutboundLink('http://qcoherent.com/evaluation.html'); return false;"
I've just added the Twitter button on my blog under each post, but the tweets number displayed is the same on each button and is random.
In addition to this, if I enter to a post the number displayed change :S
Any idea about this issue?
EDIT:
This is the code that I'm actually using for the Twitter button
<a class='twitter-share-button' data-count='horizontal'data-lang='it'
data-via='ZOMBIEKB' expr:data-text='data:post.title'
expr:data-url='data:post.url' href='https://twitter.com/share'>Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)
[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=&
quot;//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore
(js,fjs);}}(document,"script","twitter-wjs");</script>
Each widgets data-url has to point to the url of the post it is describing not yout blog url:
yes: data-url="http://www.zombiekb.com/url-to-this-post/"
no: data-url="http://www.zombiekb.com/"
I am currently creating a Tweet button for my website but have little knowledge of Twitter. I would like the text to say something similar to 'I like' and be followed by the title and url for the current page. I can make it display the text that I would like, or the page title, but cannot seem to get the text AND the page title into the tweet together.
So I would like the tweet to be... 'I like [page title] at Phil's website - [url for specific page]'
Is it possible to get it from meta data and open-graph similar to how facebook works?
Thanks in advance for any help, the code below is taken from the Twitter website with a few edits made.
Tweet<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
I was thinking of setting up some tweet buttons for people to tweet out various sections of a long article using #anchor tags
eg a URL like this
http://www.w3schools.com/html_links.htm#tips
http://www.w3schools.com/html_links.htm#questions
There would be a Tweet button next to each Anchor Tag
Is this possible and will each tweet button have their own unique Count on their respective buttons?
eg
Tweet<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Tweet<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Many thanks in advance
Cheers
Andy
Twitter disregards #fragments in their tweet button counts so multiple tweet buttons linking to multiple sections of a single page will all have the same count. You can have multiple tweet buttons on a single page with different counts but they will have to be fore separate pages. For example a blog of example.com could have two tweet buttons with different counts but they would have to be for:
example.com/1
example.com/2
A workaround is to play with GET values. You can use this kind of url for the tweeter button :
http://www.w3schools.com/html_links.htm?anchor=tips
http://www.w3schools.com/html_links.htm?anchor=questions
Then, you add some JS to jump to the anchor when the user come from tweeter.