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; } ?Expart advice Think of a domain This step takes some creativity. To pass a custom transaction ID in your tracking link, append the following parameter: ad_id You or your publisher needs to insert an externally generated transaction ID value in this parameter before the click registers in HasOffers.
Example: link UPDATE The above is for the older version of the API - ga.js. On the left side of the offer's page, find the Generate Tracking panel and select the publisher from the Affiliate dropdown menu. Libya, for instance, exercised its control over the .ly domain in October 2010 to shut down vb.ly for violating Libyan pornography laws. Initially Twitter automatically translated URLs longer than twenty-six characters using TinyURL, although it began using bit.ly instead in 2009[10] and later developed its own URL shortening service, t.co.
So if your link is as long as a giraffes neck, coupled with the rest of the tweet, you will definitely find yourself truncating the text and even break the whole thing. Notice we added our own custom tracking text to the parameter so we could tell this link was the “Services Brochure”.
Twitter will use this to make your timeline better. You can always register additional domain names on our site. See more information about AppsFlyer's Tracking Link Structure and Parameters. Consider alternate extensions: If your top choice isn't available, consider using a country code TLD (ccTLD) such as .to or .co. It gives you yet another level of analytics that you can use to base your decisions on. From there, you can click Export as CSV to download a list of contacts for each link result.
To enable outbound link tracking, you need to add a little javascript to your website, and add a little code with each outgoing link that you want to track. Once the address is copied, paste that address into another program by clicking a blank field and pressing Ctrl+V or Cmd+V. Our thanks also go out to our friends at GoDaddy and in Montenegro for help with the domain.You get a whopping 280 tiny Twitter characters to say what you want to say in a tweet. Similar Tools: Google Analytics and Clicky Clicky - A Great Alternative To Google Analytics Clicky - A Great Alternative To Google Analytics Read More .Autotrack Autotrack is a JavaScript library built on top of analytics.js that makes it easier for web developers to track the user interactions that are common to most websites. Therefore, as a Twitter marketer who needs to track link performance, you should use bit.ly. Google which is a brilliant search engine decided to examine these numerous links and when its crawler discovered that the links were spam links it blacklisted the site and sent it into oblivion. URLs encoded in two-dimensional barcodes such as QR code are often shortened by a URL shortener in order to reduce the printed area of the code, or allow printing at lower density in order to improve scanning reliability. Don't use your company name: URL shorteners can also be formed from product names, words common to your industry, slogans or even slang. Our agency activities and custom domain portfolio remains private and secure. Therefore, if a link source is moved to a FAT file system volume the tracking information is lost. Even when people have been to a site before, they will often try to guess or remember the site name instead of using a bookmark or history list; so an ideal domain name is short, simple, memorable and easy to spell. If you’re linking from one site using Analytics to another using Analytics Google could record that relationship. This is the programmatic side of the web site at goo.gl. We recommend choosing only one type of Google Analytics tracking. Also check out our other articles about URL shorteners – 6 Cool URL Shorteners With A Twist Which You Should Try Out 6 Cool URL Shorteners With A Twist Which You Should Try Out 6 Cool URL Shorteners With A Twist Which You Should Try Out URL shorteners are a dime a dozen and don't seem to survive long.