Twitter users are used to using URL shortener to share links of news, blogs and so on since they only have space of 140 characters to share something. More » Mcaf.ee McAfee is a leading computer and web security company that provides antivirus, encryption, firewall, email security and much more to its customers. Our favorite is YOURLS, but Lessn More is another good free option. Some URL shortening sites, such as TinyURL.com, will also offer you an option to specify your own “key” or alias for the longer URL you supply. Here's an example of a tracking link using custom variables for the email and phone parameters: The following HasOffers parameters can be used in your affiliate tracking links: Mobile Tracking Parameters When you want to support mobile device attribution, you can use our mobile tracking parameters in your affiliate tracking links: Thank you for your feedback!
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; } ?Use branded short links to build customer trust and increases conversions. On other such services, using a URL shortener can allow linking to web pages which would otherwise violate this constraint.
It wasn’t long before link shorteners quickly became more than mere link shorteners. Many URL-shortener services offer the option to track how many clicks each link gets. To quote John Wanamaker, the father of modern advertising: So which half of your advertising is a waste of money? With TinyURL, you can also make a smaller URL that will work for any page on your site. More » Mcaf.ee McAfee is a leading computer and web security company that provides antivirus, encryption, firewall, email security and much more to its customers. See if you are using Classic Analytics (ga.js) or Universal Analytics (analytics.js).