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:
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.
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"";
elsereturn results[1];
}
The way that the function is used is fairly simple. Let's say you have the following URL:
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 thisvar 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.
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.
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.
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.)