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. Adding tracking directly to your site If you have added the Analytics tracking code directly to your site, you can copy and paste the script below into your own pages to set up Event tracking for outbound links. Such scripts avoid many issues with shortening services, keep the domain name as part of the shortened link, and can be made private. To manage click tracking in the plain-text version of your campaign, check or uncheck Track plain-text clicks. Click Save.
Now you can go back to the tweet and paste the copied shortened link instead using the long link. You can comfortably shorten any link you want and even share it on other social media platforms, forums, websites etc. Sign In to Google Tag Manager Create a Account Name the Container for your site Accept the Terms & Conditions Copy & Paste the GTM code block at the start of the
tag on your site Setup the Link Tracker Add a tag to capture all the link clicks Create a macro to save the anchor text Add a tag to fire off the Google Analytics Event Add a rule to capture only the clicks on external links Save a version and publish 1. How do you view your shortened links in HootSuite?
Since database content can be subject to frequent updating that means webpage content can frequently change as well. • The address itself will indicate static or dynamic. Maybe, the footer bar and the after post banner is working the best, but your sidebar ad is not. This has been risky in the past because errors can result whenever users manually enter links.
6Creating trackers for Adjust’s API Attribution Partners. In this article: Using Google Tag Manager If you use Google Tag Manager to manage your Analytics tracking, follow the instructions in Analytics Events to implement events.
This will receive an clicked-link events as they bubble up through the DOM. 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. The links toolbar may not be visible in all setups and in most browsers, you can enable it in the View->Toolbars menu of your web browser. This is the title that will show in your Google Analytics account after the automation is started. Use Custom Short URLs in blog posts to amplify my messages and promote my personal brand at the same time.