Monday 21 November 2011

How to Redirect URLs With Google Analytics

 Google Analytics users can implement redirect URLs to track hyperlink clicks. With the Google Analytics service, website designers and managers can keep track of how many people visit their pages and how long they stay on them. In addition, Google Analytics stores other information about visitors, such as the browser they are using and what search terms led them to the page. If you also want to know how many users click a certain link on your webpage, you can set up a redirect URL with your Google Analytics account.

Difficulty:Moderate1
Launch a Web-editing application, such as Adobe Dreamweaver or a standard word-processing program.
2
Open the HTML file for the webpage in which you want to use a redirect URL.
3
Place your text cursor in between the “” and “” tags near the top of the HTML code.
4
Enter the following into the HTML code to give Google Analytics time to track outgoing links:
5
Go to the section of the HTML code that contains the hyperlink you want to track and place your text cursor at the end of the URL address.
6
Add the following to the hyperlink code:
onClick=”recordOutboundLink(this, ‘Outbound Links’, ‘newsite.com’);return false;”
Replace “newsite.com” with a label for the link.
7
Save the HTML file and upload it to your Web server. Now when visitors click the hyperlink, it will momentarily redirect to Google Analytics before continuing to the linked page. Statistics about the redirect URLs will also be viewable in your Google Analytics reports.

Find Out More...!

No comments:

Post a Comment