Using a custom domain with your link shortening service is a way to confront the spam and distrust issue. You can always view clicks over a period of 24 hours, a month, and a custom date range. DyingLinks gives you control over how long you want your shortened link to be available, along with some other control and privacy features.
This action makes it more convenient for your visitors to read and makes the addresses more suitable to share on Twitter. Tap the address bar once to highlight all of the text contained within it. If you’re linking from one site using Analytics to another using Analytics Google could record that relationship.
Your link stats will also be public if you use this service. Thus, short URLs may be more convenient for websites or hard copy publications (e.g. a printed magazine or a book), the latter often requiring that very long strings be broken into multiple lines (as is the case with some e-mail software or internet forums) or truncated.
For example, New York Times uses the shortened address “nyti.ms”. Most URL shortening services offer basic analytic data that tracks the total number of clicks, the time of the click and the country or territory location of the person who clicked the link. Changing your URL several times may make it hard for people to find you. This can be added to existing JavaScript files or in a script block as long as it’s loaded somewhere within the HTML body (ideally, just before the closing tag). jQuery (or your alternative) must be loaded first although the Google Analytics tracking code can appear anywhere on the page. /* Track outbound links in Google Analytics */ (function($) { "use strict"; // current page host var baseURI = window.location.host; // click event on body $("body").on("click", function(e) { // abandon if link already aborted or analytics is not available if (e.isDefaultPrevented() || typeof ga !== "function") return; // abandon if no active link or link within domain var link = $(e.target).closest("a"); if (link.length != 1 || baseURI == link[0].host) return; // cancel event and record outbound link e.preventDefault(); var href = link[0].href; ga('send', { 'hitType': 'event', 'eventCategory': 'outbound', 'eventAction': 'link', 'eventLabel': href, 'hitCallback': loadPage }); // redirect after one second if recording takes too long setTimeout(loadPage, 1000); // redirect to outbound page function loadPage() { document.location = href; } }); })(jQuery); // pass another library here if required The event is recorded with the category name ‘outbound’, action name ‘link’ and the value set to the URL of the outbound page. 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.
Launch and use Now that you're all set up, you're ready to use your new URL shortener. Orientation: How you decide to design your site's layout may be influenced by whether your users view your site primarily in landscape or portrait mode. Unfortunately, reports would be misleading if one or more outbound sites didn’t use Analytics. Tinyarro.ws, and qoiob.com use Unicode characters to achieve the shortest URLs possible, since more condensed URLs are possible with a given number of characters compared to those using a standard Latin alphabet.[citation needed] Services may record inbound statistics, which may be viewed publicly by others.[5] Expiry and time-limited services[edit] Many providers of shortened URLs claim that they will "never expire" (there is always the implied small print: so long as we do not decide to discontinue this service—there is no contract to be breached by a free service, regardless of "promises"—and remain in business). Set up conversion tracking in Google Analytics to track contacts from clicks to purchases on your website. This automatic behavior provides the best possible experience to your app users who open goo.gl links, no matter what platform or device they are on. We’ll use the GA Event tracking feature to capture all the information. Use Custom Short URLs in my books and newsletters to encourage trust and build brand loyalty with fans. Other Features If you hang out in Bitly.com long enough, you’ll discover several other features for further customizing your links and stats page. Link Tracking when Forcing HTTPS with HSTS If your company is considering implementing HTTP Strict Transport Security (HSTS) for your site to ensure visitors may only connect using the more-secure HTTPS, there can be implications for your users’ experience with Sailthru-tracked links if you enable HSTS for all subdomains via the optional includeSubDomains directive. If no value is provided for ad_id on a click, then conversions in that click session are rejected with the "No Transaction ID provided" error. Creative Files When creative files have been added to an offer, the offer's Generate Tracking panel will have an additional item labeled Creative. When you select a creative file from the dropdown menu, your tracking link is appended with the following parameter: file_id This parameter also appears in the standalone tracking link to track the performance of the creative in the stats reports: Deep Links If you have the custom deep link feature enabled for an offer, you can set a custom redirect URL to use instead of using one of the existing landing page URLs set in the offer already. A shorthand link is associated with the registered URL. The nice thing about it is that it’s a short link, about 70% smaller than the permalink for this post. Before going to the tutorial check the working example: Working URL Shortener website: Below is the example of Google URL Shortener API with JavaScript.
URL: