If you copy and paste this script exactly as it appears here, your outbound clicks will appear in your Analytics Events reports with a Category of "outbound" and an Action of "click". (In the snippet, these are shown in bold.) You can use these values, or change them and define your own values. Techniques[edit] In URL shortening, every long URL is associated with a unique key, which is the part after its top-level domain name. The great thing is now you can promote your own domain in the tweets. Yourls is a way to homebrew your own shortened links so that you don’t have to rely on that middleman.
As an example, their tracking system could have a macro for ad placement that you use to replace "AFF_SUB", and another macro for traffic source that you use to replace "SOURCE". Click the numbers next to each URL to view the contacts who clicked that link in your campaign. For example: Services Brochure In the above URL we’ve added the parameter “?pdf=Services-Brochure” to the end of the PDF URL link. For example, say you are using UTM codes to track website traffic. Then when the page loads, it can load the Javascript and track the information in Google Analytics as expected. If you're comfortable with Web hosting and setting up simple PHP and mySQL applications, there are several free scripts you can use to set up a URL shortener on your own server, giving you much more control.
Additionally, Bit.do also allows you to set a custom short URL without having to create any account. Typically, data: and javascript: URLs are not supported for security reasons. Our link service measures information such as how many times a link has been clicked, which is an important quality signal in determining how relevant and interesting each Tweet is when compared to similar Tweets. Did you set a link to a file instead of a page on your website?
Click Macro Redirect You can specify a custom click macro by first enabling the offer tracking setting, and then passing in a URL using the following parameter: redirect For this parameter, you can include either the {redirect} or {eredirect} macro to track your clicks in another tracking system. Maybe you have the ad for your book in your sidebar, in your footer bar, and after your post content.
Tracking Opened Emails Companies running email campaigns often want to be able to track how many times their emails were opened. This example assumes that you are using the analytics.js tracking code. Similarly, if you assign traffic to a certain campaign but with an unknown adgroup, and later on add adgroup attributions, the traffic up until then will be shown as unknown. Abuse[edit] URL shortening may be utilized by spammers or for illicit internet activities. However, they do not always yield positive results, and can be time consuming. For more information about shell shortcuts, see IShellLink. In the example above we have created a link to be shared on Twitter, as a tweet. utm_source parameter identifies the source of traffic this could be a site, a social media network, newsletter, app, etc. You can then receive an install callback to your servers, or alternatively request the original referring user via delegate callbacks. Link Tracker Keeping track of the links to a website can be quite a tedious task especially if you decide to check every link to your site. Here are just a few that seem to be popular: Bitly: TinyURL.com: Goo.gl: To find more options, just type “url shortening” or “url shortening services” into your favorite search engine. The nice thing about it is that it’s a short link, about 70% smaller than the permalink for this post. This will bring up: A) All linking root domains that are pointing to your PDF B) The page they are linking from C) The domain authority of their site. Understanding which external links are most often clicked on your website will help you understand what kind of information users are looking for. Your brand, your name–it’s carried across into the very links that you are sharing. This helps let people know they aren’t spam. As long as your custom domain relates to your brand and you use it consistently, people will know that the links you are sharing have been vetted by you. Export your data to Excel, text, PDF or XML for paid accounts. To track only the HTML version of your campaign, and not the plain-text version, you can create a custom tracking code using Google's resources and add it to the HTML of your campaign.