Tips Jekyll google adsense

sontung127

New member
..

## Cách thêm Google AdSense vào Jekyll

Jekyll là một trình tạo trang web tĩnh cho phép bạn tạo các trang web đẹp mà không cần phải biết bất kỳ mã nào.Google Adsense là một chương trình cho phép bạn kiếm tiền bằng cách hiển thị quảng cáo trên trang web của mình.Trong hướng dẫn này, chúng tôi sẽ chỉ cho bạn cách thêm Google AdSense vào trang web Jekyll của bạn.

### Điều kiện tiên quyết

Trước khi bạn có thể thêm Google AdSense vào trang web Jekyll của mình, bạn sẽ cần:

* Tạo tài khoản Google AdSense.
* Nhận mã Google AdSense của bạn.
* Cài đặt [plugin adsense Jekyll] (https://github.com/jekyll/jekyll-adsense).

### Tạo tài khoản Google AdSense

Để tạo tài khoản Google AdSense, hãy truy cập [trang web Google AdSense] (Google AdSense - Earn Money From Website Monetization) và nhấp vào ** Tạo tài khoản AdSense **.Thực hiện theo các hướng dẫn trên màn hình để tạo tài khoản của bạn.

### Nhận mã adsense Google của bạn

Khi bạn đã tạo tài khoản Google AdSense của mình, bạn sẽ cần lấy mã Google AdSense của mình.Để thực hiện việc này, hãy đăng nhập vào tài khoản Google AdSense của bạn và nhấp vào ** Quảng cáo của tôi **.Sau đó, nhấp vào ** Đơn vị quảng cáo ** và nhấp vào ** Tạo **.

Trong trường đơn vị ** loại quảng cáo **, chọn ** hiển thị **.Trong trường ** kích thước đơn vị quảng cáo **, chọn kích thước của quảng cáo mà bạn muốn hiển thị.Trong trường ** vị trí **, chọn ** trang web **.

Nhấp vào ** Tạo **.Sau đó, bạn sẽ được cung cấp một mã mà bạn có thể sử dụng để thêm Google AdSense vào trang web Jekyll của mình.

### Cài đặt plugin Jekyll AdSense

Plugin Jekyll Adsense giúp dễ dàng thêm Google AdSense vào trang web Jekyll của bạn.Để cài đặt plugin, hãy chạy lệnh sau trong thiết bị đầu cuối của bạn:

`` `
đá quý cài đặt jekyll-adsense
`` `

### Thêm Google AdSense vào trang web Jekyll của bạn

Để thêm Google AdSense vào trang web Jekyll của bạn, hãy mở tệp `_config.yml` của bạn và thêm mã sau:

`` `
bổ sung:
- Jekyll-Adsense

Quảng cáo:
Mã: Your_Google_Adsense_Code
`` `

Thay thế `your_google_adsense_code` bằng mã mà bạn nhận được từ tài khoản Google AdSense của mình.

### Lưu các thay đổi của bạn và triển khai trang web của bạn

Khi bạn đã thực hiện các thay đổi đối với tệp `_config.yml`, hãy lưu các thay đổi của bạn và triển khai trang web của bạn.Google Adsense hiện nên được hiển thị trên trang web của bạn.

### Tài nguyên bổ sung

* [Tài liệu plugin Jekyll AdSense] (https://github.com/jekyll/jekyll-adsense/blob/master/readme.md)
* [Tài liệu Google AdSense] (https://support.google.com/adsense/answer/100780?hl=en)

## 5 hashtags

* #JeKyll
* #Google Adsense
* #Staticsitegenerator
* #Headlesscms
* #Jamstack
=======================================
#JeKyll #GoogleAdSense #Staticsitegenerator #Headlesscms #Jamstack

## How to Add Google AdSense to Jekyll

Jekyll is a static site generator that allows you to create beautiful websites without having to know any code. Google AdSense is a program that allows you to earn money by displaying ads on your website. In this tutorial, we will show you how to add Google AdSense to your Jekyll site.

### Prerequisites

Before you can add Google AdSense to your Jekyll site, you will need to:

* Create a Google AdSense account.
* Get your Google AdSense code.
* Install the [Jekyll AdSense plugin](https://github.com/jekyll/jekyll-adsense).

### Create a Google AdSense account

To create a Google AdSense account, visit the [Google AdSense website](https://www.google.com/adsense/start/) and click **Create an AdSense account**. Follow the instructions on the screen to create your account.

### Get your Google AdSense code

Once you have created your Google AdSense account, you will need to get your Google AdSense code. To do this, log in to your Google AdSense account and click **My ads**. Then, click **Ad units** and click **Create**.

In the **Ad unit type** field, select **Display**. In the **Ad unit size** field, select the size of ad that you want to display. In the **Placement** field, select **Website**.

Click **Create**. You will then be given a code that you can use to add Google AdSense to your Jekyll site.

### Install the Jekyll AdSense plugin

The Jekyll AdSense plugin makes it easy to add Google AdSense to your Jekyll site. To install the plugin, run the following command in your terminal:

```
gem install jekyll-adsense
```

### Add Google AdSense to your Jekyll site

To add Google AdSense to your Jekyll site, open your `_config.yml` file and add the following code:

```
plugins:
- jekyll-adsense

adsense:
code: YOUR_GOOGLE_ADSENSE_CODE
```

Replace `YOUR_GOOGLE_ADSENSE_CODE` with the code that you got from your Google AdSense account.

### Save your changes and deploy your site

Once you have made the changes to your `_config.yml` file, save your changes and deploy your site. Google AdSense should now be displayed on your site.

### Additional resources

* [Jekyll AdSense plugin documentation](https://github.com/jekyll/jekyll-adsense/blob/master/README.md)
* [Google AdSense documentation](https://support.google.com/adsense/answer/100780?hl=en)

## 5 Hashtags

* #JeKyll
* #GoogleAdSense
* #Staticsitegenerator
* #Headlesscms
* #Jamstack
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top