Home arrow Web Design Blog
Web Design Blog

How do I manually track clicks on outbound links? PDF Print E-mail

Google Analytics provides an easy way to track clicks on links that lead away from your site. Because these links do not lead to a page on your site containing the UTM JavaScript, you will need to tag the link itself. This piece of JavaScript assigns a pageview to any click on a link - the pageview is attributed to the filename you specify.

For example, to log every click on a particular link to www.example.com as a pageview for "/outgoing/example_com" you would add the following attribute to the link's tag:

 
<a href="http://www.example.com" 
onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');">

It is a good idea to log all of your outbound links into a logical directory structure as shown in the example. This way, you will be able to easily identify what pages visitors clicked on to leave your site.

To verify that _trackPageviewis being called correctly, you can check your Top Content report 24-48 hours after the updated tracking code has been executed. You should be able to see the assigned pagename in your report.

This article source from here.

 

Get URL Parameters Using Javascript PDF Print E-mail

An easy way to parse the query string in your URL to grab certain values.

Most of the server-side programming languages that I know of like PHP, ASP, or JSP give you easy access to parameters in the query string of a URL. Javascript does not give you easy access. With javascript you must write your own function to parse the window.location.href value to get the query string parameters you want. Here is a small function I wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's built in regular expressions. Here is the function:

 
 
function gup( name )
{
  name = name.replace(/[[]/,"\\\[").replace(/[]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
 

The way that the function is used is fairly simple. Let's say you have the following URL:

http://www.jiawebdesign.com/dev/get-url-parameters.html?cp=testing

The value of the variable cp is equal to testing in this example.

This article source from here.

 

ActionScript 3.0 Click Button Code Example PDF Print E-mail

There are two buttons are careted in the flash. One is named as btnReplay and another one is myButton

 
var clickTAG = root.loaderInfo.parameters.clickTAG;
myButton.addEventListener("click", onClick);
btnReplay.addEventListener("click", replay);
 
function onClick(evt:MouseEvent):void {
  // comment out for testing
  // trace("you clicked me"); 
 
  // embedded with a static URL or...
  // var targetURL:URLRequest = new URLRequest("http://yourURL.com/");
  //navigateToURL(targetURL);
 
  // when URL is a flash var use this
  var targetURL:URLRequest = new URLRequest(clickTAG); 
  navigateToURL(targetURL);
}
function replay(evt:MouseEvent):void {
  gotoAndPlay("start");
}

Then, in html codes, add a flash var to access the above flash.

animation.swf?clickTAG=http://yourURL.com

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 

Google's Cutts: Good directions drive traffic to your website PDF Print E-mail

By Jefferson Graham, USA TODAY

You have a website and can't figure out why it's not showing up at the top of Google's search rankings. You go to Google.com for some guidance but get lost trying to find answers.

Certainly, achieving visibility in Google's search rankings can be a mystery. To help solve the riddle, USA TODAY sat down with Google's Matt Cutts, an engineer and active blogger, who has five easy tips on how to "optimize" your site so Google (GOOG) and the rest of the world can find it.

TALKING TECH: Google's Matt Cutts discusses how to improve your site's search ranking

More and more businesses are turning to the Web to find customers: $5.8 billion was spent on advertising in the first quarter alone, up 18.2% from the prior year, according to the Interactive Advertising Bureau. Google's share of Internet searches continues to rise as well — to a record 61.8% in May, according to measurement service ComScore Media Metrix.

Read more...
 

Adobe Videos PDF Print E-mail

Dreamweaver CS4 Live Preview

Jorge and Paul show how Dreamweaver's new Live View mode makes designing dynamic, JavaScript-powered interfaces easy, powerful and accurate.

Dreamweaver CS4 Code Navigator

Dreamweaver's new Code Navigator gives you lighting-fast access to the CSS rules that define any element of your page, wherever they're defined.

 

A fresh take on the browser - Google Chrome PDF Print E-mail

A fast and cool internet browser - Google Chrome now live!

Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

Following is the news from Google:

Google Chrome now live - 9/02/2008 12:02:00 PM

In yesterday's post on Google Chrome, we promised to let you know when it would be available for everyone to try -- and that time is now. Visit http://www.google.com/chrome to download and start exploring. (For the moment, it's available only for Windows users, but you can sign up on the download page to learn when the Mac and Linux versions are available.)

Posted by Brian Rakowski, Product Manager

Image
Google Chrome (beta) for Windows
Read more...
 
<< Start < Prev 1 2 3 4 Next > End >>

Results 7 - 12 of 21
Banner

USATODAY.com Video - Talking Tech