I'm trying to integrate tweet button to my site. My page url ends with a "~" sign, but the url that twitter generates after shortening redirects to a page without this tilda sign at the end.
I think due to this the tweet count is not going up. Is there a way to correct this or may be, prevent the url from being shortened?
Related
I'm using rails to send an email to log in a user through a link. In that email I have a button and link that both use the same url but with the button I'm getting a 404 error while using google or yahoo's main site to view the email. While using third party email portals I don't seem to have this issue. The link works in all circumstances.
In the view for the email template, I'm using the button_to tag for the button that will redirect the user to the site to log them in. Which I noticed puts the button into a form. So I was wondering if this was a safety measure by google and yahoo to prevent potential threats and I need to refactor to just have a button without the form element, or could it be an issue with my code?
I am running google adword campaign for one brand on google search result it will show display url www.mysite.com and when someone hit on the ad then on the url tab first of all it will redirect to some other page then it will show my original url i.e. www.mysite.com Please visit the following link for reference Example URL
Rids - If I understand you, you want to set up adwords ad (that you control) to link to your site that you're advertising...then you want to redirect them somewhere else.
You should be able to provide the url in the ad to the first location.
Then you'd have to code something that redirects them to a different url...
There is no way to do a double end point in http protocol. its a request,response. once a user clicks on your ad - they have requested your URL, your server will send a response page, which gets rendered in the browser...
Your server, OR your response page can perform a redirect - but you have to code that. Unless you're using some CMS (content management system) that will 'code' it for you thru an interface...but it's still 'code'
Hope that helps.
I'm developing a desktop application which is supposed to allow users to login via Twitter.
There seems to be 2 ways to do so, that differ in a way oauth_verifier is returned to the application.
The first one is for web applications and oauth_verifier is returned as a url query parameter when redirecting user back to redirect_url.
The second one is using a PIN displayed to the user, which user enters to the app.
Now Facebook, for example, has a page facebook.com/connect/login_success.html , where FB can redirect a user with ouath_verifier as a query param (e.g. facebook.com/connect/login_success.html?code=<token>. Then I can read that param back from the browser's location field (I'm using an embedded browser).
So, is such a workflow possible with Twitter? Does it have a static page, where it can redirect user with oauth_verifier ?
I haven't been able to find such a page in Twitter's API docs, so I ended up using the main page twitter.com for the redirect. Everything works fine.
I have a URL in my (Ruby on Rails)web application that links to an external page (iTunes app page) and I would like to track visits to that link. I'd also like to be able to track the utm_campaign variable so that I can see how many visits different campaigns are sending to this URL. I don't think I can do a 301 redirect here, since Google Analytics is using JavaScript. How can I accomplish this?
EDIT: to be more specific, the URL is there to use in marketing materials (fliers, etc.). There isn't an actual link in the application.
Couldn't you write some JS that captures the click event of the anchor, increments a counter, and then fires up the href of that anchor in another window (target="_blank")?
I was just viewing a users profile on dribbble.com, they had linked their profile with twitter, when hovering over the link to go to their twitter page, it shows a url like this:
http://dribbble.com/thyraz/click?type=twitter
I'm wondering what the website/coding reason/advantage for doing this would be? why not just put a normal link to their twitter profile? does this protect the website from phishing attempts or something?
dribbble could be tracking/counting the links?
eg, "click" could be a page which counts the click, then it sends them on their way to the page.
EDIT:
For example, search Google for "Stack Overflow" and hover over one of the sponsored links on the right. in the status bar, you will see the link goes to a page hosted by Google rather than to the actual link. This page will be keeping a record of all the clicks on that link, then redirecting the link as expected.