Before you move on, let me let you know that twitter blocks a lot of link shortening services and has since flag them negatively. However, if it's a direct link to a resource like a document or PDF or JPG, to track this link when using Google Analytics you may need some custom tracking methods setup on your server to track that particular link to your resource.
In addition to using bit.ly as a tool integrated into third-party tools you can also use it directly at the bit.ly website. Generate Creative Code If you've added creative assets to the offer, there will be a dropdown menu below the tracking link where you can select the desired creative: When the creative is selected, the generated creative ad tag code for the publisher and offer appears in a new text box. Click this number in your report to open a list of subscribers who clicked. There is now a “Get Shortlink” button next to your permalink when you edit or write a post, and when you click it you’ll get a popup with the beautiful link already highlighted for your copy and pasting pleasure. Answers blocks postings that contain TinyURLs,[citation needed] and Wikipedia does not accept links by any URL shortening services in its articles. Use remarketing links to repeatedly get my brands in front of interested eyeballs.
Here's an example of a URL that can be set as the custom click macro for an offer: {redirect} On click, the {redirect} macro in the above URL is replaced with the HasOffers tracking link for the offer: Custom Transaction IDs Before using the parameter for custom transaction ID, contact your account manager or our support team to enable the feature for your network. Please note: anyone with a t.co shortened link will be able to navigate to the destination URL. 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. If your custom URL scheme is “myapp://”, you can use trackers such as: Deep links are compatible with all other tracker parameters.
Once you have created a campaign-level tracker, that particular tracker cannot be renamed to become an adgroup-level tracker. The next page will show you a shortened link. 7. Subscribe See why 200,000 companies worldwide love Campaign Monitor.
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. You need to categorize each link in each email so that the information reported is useful. It would be advisable first to list all the links to your site and if you find any suspicious links, use this utility to examine it. Note: As of March 30, 2018, Google's URL shortener is only available to active users, and the data generated by those shortened URLs will only be available until March 2019. Consider alternate extensions: If your top choice isn't available, consider using a country code TLD (ccTLD) such as .to or .co. In this case, this is what I used: Category: Email Link Click – I manually named this, so it’s easy for me to see that this category includes any link on an email address. That’s its unique identifying number, just as 9,998,383,750,001 would be the number used to identify which person was waiting after Beetlejuice.Overview The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. To add affiliate sub IDs, check the Add Sub ID box. Tracking Link Clicks with Event Tracking vs Virtual Pageviews You are also able to use virtual pageviews to track link clicks however, this technique may cause problems elsewhere. Once the call is complete, it can run a callback function so we can redirect to the outbound page. Tap the address bar once to highlight all of the text contained within it.