Sunday, December 16, 2007

Chèn quảng cáo GA vào bài viết

Trong bài viết này , chúng ta sẽ cùng bàn tới cách đưa quảng cáo (ads) đến mọi vị trí trong Blog như: phía trên hay dưới của phần post, chèn lẫn vào bài viết hoặc chèn vào các sidebar...

1) Sử dụng Blogger Feature:
Nếu bạn muốn đưa ads tới phía dưới mọi bài viết hay chỉ một bai viết thì hãy sử dụng Blogger
Feature. Bạn vào Template--> Page Elements, bạn chọn Edit ở phần Blog Posts. Xem hình dưới:




















Muốn chèn qc như hương dẫn trên bạn cần xác nhận mình đã có tài khoản của Google Adsense. Cách để xác nhận rất đơn giản , trong Page Elements bạn chọn Add a Page Element. Trong cửa sổ Add a Page Element, bạn chọn Adsense rồi điền các thông tin cần thiết vào đó.

2) Lấy code ads trực tiếp :Bạn đăng nhập vào tài khoản của mình trong Google.com/adsense. Bạn copy và paste đoạn code của quảng cáo vào trong những vị trí bạn muốn.

3) Để có thể đưa ads vào trong bài viết bạn cần làm như sau:
Hãy vào Edit HTML và lưu template. Bạn click vào Expand Widget Templates (xem hình)







Bạn tìm đoạn code sau:


<div class="post-body">
<p><data:post.body/></p>
<div style="clear: both;"/> <!-- clear for photos floats -->
</div>

Nếu bạn muốn đưa ads vào giữa tiêu đề và bài viết hay bên trong bài viết, bạn chèn đoạn mã dưới đây lên đầu đoạn mã da cam. Còn nếu bạn muốn đưa ads xuống dưới mỗi bài viết, hãy chèn đoạn mã dưới đây xuống dưới doạn mã mầu da cam. Đoạn mã bạn cần chèn:

<div style="float:right;">
Bạn chèn đoạn mã quảng cáo của bạn vào đây
</div>

(Ở đây tôi đưa ads của mình sang bên phải bài viết, bạn có thể chuyển nó sang bên trái nếu bạn thích.)
Bạn có thể chỉnh khoảng cách giữa ads với bài viết bằng cách thêm đoạn mã mẫu xanh vào vị trí như sau:

<div style="float:right; margin: 5px 5px 5px 5px">
Bạn chèn đoạn mã quảng cáo của bạn vào đây
</div>

Nếu bạn chưa biết về margin, bạn có thể tham khảo bài viết Tìm hiểu Margin và Padding.
Để ads có thể hiển thị trong bài viết của bạn, bạn cần thay đổi một chút mã của ads. Nếu bạn nghĩ rằng điều đó đi ngược lại quy định của Google Adsense thì bạn đã sai. Nhưng thay đổi mà tôi đưa ra sau đây chỉ nhằm làm mã của ads phù hợp với mã nguồn của template. Nếu có sự khác nhau, những ads của bạn sẽ không thể hiển thị. Việc thay đổi mã như sau:

Adsense Tips

Sau khi thay đổi xong bạn chèn đoạn mã đó như hướng dẫn ở trên và preview trước khi save nhé.
Chúc bạn thành công.

Cám ơn các bạn đã theo dõi bài viết. Mong sẽ nhận được nhiều ý kiến đóng góp từ các bạn để giúp hoàn thiện nội dung bài viết hơn..
Chúc các bạn có 1 ngày vui vẻ!










AdSense Earning = Impression-count x Click-though-rate x Cost-per-click x smart-pricing-factor.impression count is basically referring to increase your traffic. It means the number of times AdSense secret block is displayed.Click-through-rate (CTR) is ratio of clicks per impressions. It can range from 0.1% to 30%, but most commonly around 1% to 10%.Cost-per-click (CPC) is the earning money you get per click. While traditionally it refers to the amount advertisers pay for each click, it can also mean the amount publishers get for each click.Smart-pricing is AdSense method to determine how valuable clicks from your site is worth. If clicks on your site doesn’t provide good value to advertisers, e.g. from visitors’ geo-location that seldom translate to sales, you will only get a fraction of the supposed CPC.Don’t encourage your visitors to click on ads. The only acceptable text is “Sponsored Links” and “Advertisements”.When in doubt don’t hesitate to contact the AdSense team. They are very helpful.Use Overture Bid Tool and Search Engine Keyword Tool to find suitable keyword.Submit your URL to search engines for crawling.Google is not the only search engine. Optimize for different engines as well. You are very likely to face less competition than in Google.Search engines are where most of your new visitors come from. Learn a bit about Search Engine Optimization, or pay people to do it. Doing it yourself will save yourself from troubles created by not-so-honorable SEO (Search Engine Optimizer).Try 300×250 medium rectangle, 336×280 large rectangle, or 160×600 wide skyscraper ad formats. These are the best performing AdSense ad formats.Wrap the AdSense block around your content.AdSense have both CPM (cost per thousand impressions) and CPC (cost per click) ads, and will choose the one it thinks can perform better.Adsense tips have in here.SearchAdSense Tipson Google. Most webmasters continuously try to optimize their AdSense and many are more than willing to share their result.You can get help of other AdSense pulishers at AdSense Help Group.Remove the “Advertise on this sitefrom your AdSense block until your site is big enough to attract real advertisers. This will help to clear off many MFA (made-for-adsense) sites. You can disable it from AdSense account setting.Use AdSense Competitive Ads Filter to remove irrelevant ads.Try variations of AdSense colors, format, position on different pages to make it more unpredictable for your visitors.Watch your AdSense tips earning. Notify AdSense hack Team if you find anything suspicious. Your competitors might try to sabotage your account, or your well-meaning friend keep on clicking on the ads thinking they are helping you.Use Google AdSense section targeting to help AdSense deliver more relevant ads.Let earning money!money!


No comments: