Another reference to URL shortening was in 2001.[8] The first notable URL shortening service, TinyURL, was launched in 2002. Sign up for a demo Free Event Resources Need marketing tips? 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.
You get valuable tracking information including when the link was clicked, where it came from, the search keywords used, the IP address of the visitor and more. To search for name spaces Search four directory levels down from the last directory. 584+00:00", "items": [ { "kind": "urlshortener#url", "id": "", "longUrl": "", "status": "OK", "created": "2009-12-13T07:22:55. When you create menu items on your website, you are creating internal links to the item pages.
If you do nothing but add the tracking script to your pages, you’ll be faced with an endless stream of data and reports about user activity on your site. Setting the transport method to 'beacon' lets the hit be sent * using 'navigator.sendBeacon' in browser that support it. */ var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitCallback': function(){document.location = url;} }); } You'll also need to add (or modify) the onclick attribute to your links. You'll typically find the unsubscribe link in the footer. A few well-known websites have set up their own URL shortening services for their own use – for example, Twitter with t.co, and Google with goo.gl.
This is a string of encrypted numbers and alphabets. Our agency activities and custom domain portfolio remains private and secure. It’s a good way to package up multiple links into one link. Consider alternate extensions: If your top choice isn't available, consider using a country code TLD (ccTLD) such as .to or .co. Google Analytics even has a URL Builder tool where you can generate a URL with UTM parameters. By entering in a URL in the text field below, we will create a tiny URL that will not break in email postings and never expires.
Using placeholders, media partners can use a single click URL and automatically assign the correct values to your parameters. But if all the links to you use a shorter version, that sort of defeats the point! Add Tracking to Email Campaign Archives and Pages To add Google Analytics tracking to your email campaign archives and pages, follow these steps. Before you get started, be sure to plan out your events first. Masking means that your affiliate URL never becomes visible in a browser address bar. • A very simple method if you have your own website is to create a blank html page and paste the following code into the blank page (substituting your affiliate URL). Then name the html page something that makes sense for the application such as . This means your URLs for blog posts will be instead of or something along those lines. This is accomplished by attaching the method call to the particular UI element you want to track. Similar Tools: Google Analytics and Clicky Clicky - A Great Alternative To Google Analytics Clicky - A Great Alternative To Google Analytics Read More .How do you track Link Clicks with Google Analytics? Troubleshooting Consider these possibilities if you see behavior you don't expect. What Link Shorteners Do (And Don’t Do) Link shorteners were originally created to address stubborn email systems that wrapped an email after 80 characters and broke any long URLs that might have been in the message.