See the company's blog to learn more about the changes that are taking place. More » TinyURL.com TinyURL used to be one of the top shortening choice in the past, and people still use it a lot today, however it does include a couple more characters compared to others like Bit.ly and Goo.gl. There are several techniques to implement a URL shortening. Maybe you find an interesting photo or song, or you want to refer people to another article someone else wrote. Note: As of March 30, 2018, Google's URL shortener is only available to active users, and the data generated by those shortened URLs will only be available until March 2019. Get the details/analytics of Short URL //Request Format: var request = gapi.client.urlshortener.url.get({ 'shortUrl': "", 'projection':'FULL' }); //projection can be 'FULL',"ANALYTICS_CLICKS" or "ANALYTICS_TOP_STRINGS" //JSON Response { "kind": "urlshortener#url", "id": "", "longUrl": "", "status": "OK" } Google URL Shortener API PHP Example $longUrl, 'key' => $apiKey); $info = httpsPost($postData); if($info != null) { echo "Short URL is : ".$info->id."n"; } //Short URL Information $shortUrl=""; $params = array('shortUrl' => $shortUrl, 'key' => $apiKey,'projection' => "ANALYTICS_CLICKS"); $info = httpGet($params); if($info != null) { echo "Long URL is : ".$info->longUrl."n"; echo "All time clicks : ".$info->analytics->allTime->shortUrlClicks."n"; } //Get Full Details of the short URL $shortUrl=""; $params = array('shortUrl' => $shortUrl, 'key' => $apiKey,'projection' => "FULL"); $info = httpGet($params); var_dump($info); function httpsPost($postData) { $curlObj = curl_init(); $jsonData = json_encode($postData); curl_setopt($curlObj, CURLOPT_URL, ''); curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curlObj, CURLOPT_HEADER, 0); curl_setopt($curlObj, CURLOPT_HTTPHEADER, array('Content-type:application/json')); curl_setopt($curlObj, CURLOPT_POST, 1); curl_setopt($curlObj, CURLOPT_POSTFIELDS, $jsonData); $response = curl_exec($curlObj); //change the response json string to object $json = json_decode($response); curl_close($curlObj); return $json; } function httpGet($params) { $final_url = '?'.http_build_query($params); $curlObj = curl_init($final_url); curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curlObj, CURLOPT_HEADER, 0); curl_setopt($curlObj, CURLOPT_HTTPHEADER, array('Content-type:application/json')); $response = curl_exec($curlObj); //change the response json string to object $json = json_decode($response); curl_close($curlObj); return $json; } ?Since its modest beginnings in 2002 with the dispatch of the TinyURL service, the URL shortener has developed to end up more than only an advantageous approach to spare characters and trim unattractive web addresses. In order to form the key, a hash function can be made, or a random number generated so that key sequence is not predictable.
Nowadays, the best URL shorteners accompany a full suite of analytic apparatuses with the goal that you cannot just divert clients by means of a more huge location; additionally track where your movement is originating from and what they're doing once they arrive. If you would like to read more from me, follow me Quora Vijay Gaur Disclosure : I co-own BrandNshout .com,a Digital marketing and Branding company.
For example: Bitly is one of the most popular link shortening services, and the one we prefer to use with CoSchedule. For example, if someone was on the /about/ page, and clicked on an email address, then Google Analytics will record /about/. How often do you get that kind of data from printed marketing? Bitly also offers a paid version, but it's pretty pricey. In order to get the most out if this URL shortener you can integrate it with its parent service. If you are permitting other websites to create links to your site, then you need to monitor the links to your site.
They are always trying to break into websites and cause irreparable damage to them. This is key to search engine optimization as it ensures that search engine spiders won't think the shortener URL is the "real" URL to the page. Get all the handy power of a link in a much smaller package, right? Links shared on Twitter, including links shared in Direct Messages, will automatically be processed and shortened to an link. I'm sure there are also better ways this can be done, so if you have your own way of doing it please leave me some comments below!Add JavaScript code within the tags of each page where you want to track affiliate links. Unfortunately, reports would be misleading if one or more outbound sites didn’t use Analytics.
Twitter will use this to make your timeline better. This will help you give more time-oriented outreach to people who have recently pointed to your resources, these are the most apt to engage. Link Tracking information is displayed on the Edit Item page of any link it is enabled for. Consider alternate extensions: If your top choice isn't available, consider using a country code TLD (ccTLD) such as .to or .co. Note These link tracking schemes are transparent to the end-user. Not only is this good for link shortening, but it is also good for SEO. Bitly will assign a shortened/customized URL for all the links you add to the bundle. Set up conversion tracking in Google Analytics to track contacts from clicks to purchases on your website. Currently, most URL shortener services also offer the same feature, but Bitly remains popular as it has a professional look interface.