Twitter Analytics does not match our count - twitter

I have my own custom url shortener that I use when posting on Twitter. My custom url shortener logs the view count. My problem is that as soon as I post a custom shortened url on Twitter my count instantaneously jumps up to around 30 clicks but the Twitter Analytics still shows 0.
Has anyone seen this? I have a feeling that Twitter is verifying my url.

The reason why my analytics does not match is once you post a tweet, the url gets scanned by bots.
I noticed that I also didn't have a robots.txt file. I created robots.txt to my root and added the following code:
#Code to not allow any search engines!
User-agent: *
Disallow: /
Related issue:
How can I block all bots from crawling my twitter link

Related

Google Analytics - URL builder not linking back to campaigns

I have been trying to use the URL builder to get more insight into how productive our links are. I build the url in the Google builder, and have linked it into emails and our website hyperlinks. However, nothing comes back to the analytics dashboard.
Specifically, I want a URL that I can use in an email campaign that when clicked will tally in our analytics dashboard. I have tried with this builder: https://ga-dev-tools.appspot.com/campaign-url-builder/ but nothing links back to our Acquisition - Campaigns report.
Is there a way that I have to manually link the campaign url to our dashbaord to get it tracked and reported?
Thanks,
learningtheropes
Usually, it's not a URL builder issue, but a redirect that you have on your website, that "resets" the session and ignores your UTM's.
BTW, try using this extension instead
https://chrome.google.com/webstore/detail/google-analytics-url-buil/gaidpiakchgkapdgbnoglpnbccdepnpk

weibo get status of other user?

I want to get the timeline post of the other user using weibo api but not getting.weibo API. I am using few API Call like user_timeline,trends but not getting any proper data. please, let me know if I missing any API or any settings in App. I have appKey, secret key and redirect url.
As far as I can tell, the API calls that would get you this info have all been restricted. The English documentation is not updated, but the chinese documentation specifies for example that you can only use User_timeline to get your own timeline, not others.
http://open.weibo.com/wiki/2/statuses/user_timeline
接口升级后:uid与screen_name只能为当前授权用户

YouTube REST API to get playlist not working for my channel?

I am trying to get all the playlist feed URLs from the YouTube channel in my iOS application.
Below is the URL to get the XML data consists of the required contents.
https://gdata.youtube.com/feeds/api/users/thenewboston/playlists?v=2
This is working fine, which results in the response of an XML with data.
But when I change this to my username nothing is retrieved. I have couple of playlists in my channel.
My Attempts:
Attempt 1:
I have googled and cross checked my channel's privacy settings which is Public in default.
Am I making any wrong? Please let me know your comments.
Attempt 2:
When I try like this in browser, http://www.youtube.com/user/myusername
getting "This channel is not available at the moment. Please try again later.".
The same url is working fine for thenewboston.
Try this
https://gdata.youtube.com/feeds/api/videos?v=2&author=USER_NAME&orderby=published
This will fetch all the user videos.
I have found the solution:
Below is the format that I have tried.
https://gdata.youtube.com/feeds/api/users/userId/playlists?v=2
But it seems there is some change in the API.
To request a feed of another user's playlists, send a GET request to the following URL. This request does not require authentication.In the URL above, you should replace the text userId with the user's YouTube user ID. For backward compatibility purposes, the API also supports having the user's YouTube username specified instead.
To find the userId in YouTube : (Follow the steps below)
Click the arrow on top right after login to your YouTube account.
Select YouTube settings.
Select the link Advanced and find the YouTube User Id there.
Reference : YouTube API v.2.0

Facebook Open Graph Scraping

I've recently enabled the Facebook Open Graph stuff on my web app (so and so has just read this and that on here and there). Now I post the request to Facebook when a user posts something, as part of the page load in the controller. The problem is I receive the following error:
HTTP 500: Response body: {"error":{"type":"Exception","message":"Could
not retrieve data from URL."}}
My first thought is that the open request to load the page is blocking any FB scraping of OG information, as it seems after it's been cached I no longer receive this error.
Is this likely? If so, what's the best way to work around it?
WHY THIS HAPPENS:
I had this same problem today, and it is because your Koala script (assuming you're using koala - if not, you should try it out because it's great) sends its request to Facebook before your URL is up. This means that when Facebook registers the post, it comes to the URL you specified to pick up the meta tags. Unfortunately, the page itself hasn't been loaded yet, giving it a 500 error
HOW TO SOLVE IT:
Use the delayed_job gem to prevent your post call from occurring before the page loads, which allows facebook to scrape your metatags correctly.
FOR EXAMPLE:
def post_to_facebook([ACCESS_TOKEN])
graph = Koala::Facebook::API.new([ACCESS TOKEN])
graph.put_connections("me", "[APP NAMESPACE]:[ACTION]", :[OBJECT TYPE] => [OBJECT_URL])
end
handle_asynchronously :post_to_facebook

Twitter share button "frame was blocked"

After adding the Twitter share button from here:
http://twitter.com/about/resources/tweetbutton
My https site displays a small rectangular box appears on my pages with this error:
This frame was blocked because it
contains some insecure content.
When I change the two http calls to https:
<a href="https://twitter.com/share"...
...src="https://platform.twitter.com/widgets.js">
I get a text "Tweet" link, which does work, but it doesn't have the images/layout from the Twitter site. The javascript call outputs this error in the code:
Failed to load source for: https://platform.twitter.com/widgets.js
Is there anything I can do to get this Twitter button working?
Twitter currently doesn't offer the Tweet button via HTTPS so your only option at this stage is to roll your own.
At this time tweetmeme does not seem to be secure either.
The only way to do this is securely to use a query string, e.g.
<A HREF=https://twitter.com/share?url=MYURL&via=VIA&text=TWEET>Tweet</A>
But there is no way to get the tweet count yet, and you have to dispose of the tweet window yourself.

Resources