dannytalk ™ A Danny Ng Blog

Danny Ng blogs about SEO, Web Development, Christianity, and Life in General

In case you’re wondering whether 301 redirects preserve the referrer information or not and how this may affect Google Analytic’s referrer information, I’ll show you a simple example.

So pretty much what I did was I did a Google search for clothes and found some ads on the right hand side. I used firebug to extract the destination URL as I didn’t want to inflate their costs because I’m just doing an example. What I look for are obvious tracking URLs that track and monitor search engine marketing (SEM) campaigns such as DART (Double Click).

You can also figure this one out by seeing the domain of the URL. If this is different to the display URL, most likely this is a tracking URL because Google Adwords has enforced the policy that the destination and display URL must be the same (it’s ok to use tracking URLs though as long as you land on the same domain as the display URL).

clothes-adwords

Read the rest of this entry »

Bookmark This!

http://www.dannytalk.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/reddit_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/furl_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/twitter_48.png

New WordPress Theme Coming Soon

Posted by danny On February - 24 - 2009

WordPress Screenshot

Above is the new theme I’m working on to integrate with my current setup. The theme is called epsilon by web2feel. Hopefully I’ll be able to get it up by the end of the week.

It utilises jQuery which causes conflict with the social bookmarking plugin which uses the Prototype framework. I might have to write my own plugin or modify the plugin to integrate it with jQuery. Haven’t had much experience with jQuery but it seems to be a popular javascript framework. Would be a good chance to learn it.

Also this template seems to seamlessly integrate Google Adsense into it, which is something I’ve been meaning to play around with more but haven’t had the time.

Bookmark This!

http://www.dannytalk.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/reddit_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/furl_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/twitter_48.png

Blogger: Social Bookmarking Widget – Link Baiting

Posted by danny On February - 14 - 2009

I promised Hong Yi’s mum that I would write a social bookmarking widget for her blog on Google‘s Blogger so I’ve spent part of my valentine’s day writing this widget for her.

The purpose of utilising social bookmarking widgets is to allow you to expand your reach of readership to literally hundred and thousands to millions of readers on these social bookmarking websites. Therefore, you are not limited to your normal direct traffic, existing referrals traffic and organic traffic but if I may use a SEO term, using ‘link baiting’ to bait readers in an ocean of readers to your website in the hopes of driving traffic, increasing visibility and branding, and ultimately getting links to your website.

One of the most important SEO aspects is link building or in other words, to increase the amount of links to your website. It creates authority, trust and relevancy to your website, thus improving your organic rankings on the search engine results page (SERP). You can also read my post on how to optimise your page.

Of course it is important to remember that before you submit your own articles, make sure that you write well, have a very attractive and optimised title, and a great first paragraph. In addition, write about what people would love to read about, things that are useful, relevant and informative to them. Never submit articles that are too “salesy” in nature and obviously useless information to the general public (i.e. how you’re emo-ing about the rainy weather).

Include pictures, videos and space out your paragraphs. Nothing is more frustrating than seeing a screen full of words bunched up together.

Social Bookmarking Widget

I’ve only created this widget to include some of my favourite social bookmarking websites. Feel free to modify the code and stylesheet to your preference.

Here’s a screenshot of what the widget should look like once implemented (highlighted in yellow). You can visit my old blog to see how it looks like (make sure you turn off javascript or else you’ll be redirected back here).

blogger social bookmark screenshot

Before you do anything to the Blogger template, please make sure you that save a backup before making any changes!

Here’s the stylesheet you will need (you will need to modify the image URLs to point to where you’ve uploaded the images – I’d recommend the 16×16 size to upload). Simple paste this code between your <head> tags in your Blogger template.

/**
 *	Written by Danny Ng (http://www.dannytalk.com/2009/02/14/blogger-social-bookmarking-link-baiting)
 *	Free to use and distribute but must keep this comment in place.
 *
 * 	Social Bookmark Stylesheet
*/
ul.social {
	margin-left:10px;
	padding:0;
	list-style: none;
	list-style-type: none;
}

ul.social li a {
	padding-left: 10px;
}

ul.social li.delicious {
  	display: inline;
  	background:transparent url(REPLACE THIS WITH YOUR DELICIOUS IMAGE LOCATION) no-repeat scroll 0pt;
}

ul.social li.digg {
  	display: inline;
  	background:transparent url(REPLACE THIS WITH YOUR DIGG IMAGE LOCATION) no-repeat scroll 0pt;
}

ul.social li.facebook {
  	display: inline;
  	background:transparent url(REPLACE THIS WITH YOUR FACEBOOK IMAGE LOCATION) no-repeat scroll 0pt;
}

ul.social li.reddit {
	display: inline;
	background:transparent url(REPLACE THIS WITH YOUR REDDIT IMAGE LOCATION) no-repeat scroll 0pt;
}

ul.social li.stumbleupon {
	display: inline;
	background:transparent url(REPLACE THIS WITH YOUR STUMBLEUPON IMAGE LOCATION) no-repeat scroll 0pt;
}

Here’s the code you will need to copy & paste into your Blogger template.

<!--
Written by Danny Ng (http://www.dannytalk.com/2009/02/14/blogger-social-bookmarking-link-baiting)
Free to use and distribute but must keep this comment in place.
Social Bookmark HTML
-->
<ul class="social">
    	<li class='delicious'><a alt='Add to del.icio.us' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='Add to del.icio.us'>Del.icio.us</a></li>
        <li class='digg'><a alt='DiggIt!' expr:href='"http://digg.com/submit?url=" + data:post.url + "&title=" + data:post.title' target='_blank' title='DiggIt!'>Digg</a></li>
        <li class='facebook'><a alt='Post this story to Facebook' expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url'  target='_blank' title='Post this story to Facebook'>Facebook</a></li>
        <li class='reddit'><a alt='Post this story to reddit' expr:href='"http://www.reddit.com/submit?url=" + data:post.url' title='Post this story to reddit'>reddit</a></li>
        <li class='stumbleupon'><a alt='Stumble this story' expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url' title='Stumble this story'>Stumbleupon</a></li>
</ul>

Go to your Blogger’s template section, then click on ‘Edit HTML’. Make sure you check ‘Expand Widget Templates’ and in your edit area, search for ‘post-footer-line post-footer-line-3′.

blogger social bookmark screenshot

You will see that I’ve pasted the code between the paragraph tags (highlighted in yellow). Click ‘Save Template’. Viola and you’re done!

Note: You may have to tweak around with the stylesheet depending on whether your existing stylesheet conflicts with the one I’ve provided.

Also please let me know if you find any bugs and hopefully I’ll get time to fix them.

If this has helped you in any way, please feel free to link back to this post and spread the word around :)

Bookmark This!

http://www.dannytalk.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/reddit_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/furl_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/twitter_48.png

You may have read my previous entry on performing a 301 redirect from Blogger to WordPress, where I wrote a script that will capture all traffic to your old Blogger site and redirect it to your new WordPress site. Ideally you’d want to do the 301 redirects from the web server, but unfortunately Blogger doesn’t allow you to do that and thus, you’re left with the client-side solution: Javascript.

First of all, let me clarify briefly on my previous post and inform you what the core strengths of my script are.

  • Client-side redirect will not work without Javascript. Pretty obvious huh? What that means is that search engine crawlers aren’t able to follow the redirect. Nasty limitation in a simplistic sense.
  • Strengths of my script are:
    1. It works.
    2. You need a client-side solution if you’re on Blogger. No other way.
    3. It captures and redirects all traffic from your old site to your new site.

That being said, let me now expand on these two major points: the limitations of search engine crawlers and why is capturing traffic important.

Read the rest of this entry »

Bookmark This!

http://www.dannytalk.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/reddit_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/furl_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/twitter_48.png

Updated: Tracking Exit Links in Google Analytics

Posted by danny On September - 27 - 2008

I’ve just updated my code on tracking exit links in Google Analytics to skip applying the code if the href of an anchor tag is ‘#’. This is usually the case when the anchor tag is there to execute javascript or to scroll to the top of the page, thus does not contain any exit liks.

This can be found on line 29 with the addition of a condition in the condition statement, anchors[i].href != (document.location + ‘#’).

I’ve seen a few other scripts that tracks exit links but some of them I don’t think are very good as they lack error checking and also some of them overwrite the existing onclick attribute which I guess could break the site’s functionality.

Also to prove to you that my script is working, I’ve included a screenshot of the report found in google analytics.

Of course you can click through to the individual links and analyse the dimensions for further analysis. I will be working on more google analytics custom scripts to help bring and enhance more meaningful reports.

Bookmark This!

http://www.dannytalk.com/wp-content/plugins/sociofluid/images/digg_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/reddit_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/delicious_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/furl_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/newsvine_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/technorati_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/google_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/myspace_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/facebook_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://www.dannytalk.com/wp-content/plugins/sociofluid/images/twitter_48.png