Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This is lightweight module that provides a simple integration with Google Adsense. The idea here is to provide your client like(eg: ca-pub-12345678...) and the module will automatically attach the necessary script to the <head> tag of all the pages.

Features

This module provides a configuration page with a simple field for the client id. After configuring the page and hit save the module will automatically load the necessary scripts.

Configuration

  1. Create your Google Adsense account.
  2. Configure the account and reach the step of incorporating the adsense to your site.
  3. Install the module as you usually do, see: https://www.drupal.org/node/895232 for more details
  4. Now you can go to Admin > Config > Services > Easy Adsense(admin/config/services/easy-adsense)
  5. Using the client code provided by adsense, fill the field and hit save
  6. Export the configurations in order to keep the data

That's it, your site should have necessary scripts for the google ads on the <head> tag.

Similar projects

Simple Adsense

This module is heavily inspired by the simple adsense module. But, the simple adsense module does not receive any kind of updates anyomre, so the idea is to have a new module for Drupal 9 and 10.

Adsense

The adsense module is another option, both modules are able to connect to google adsense. The main difference between the adsense module and this module is, the adsense module have more features like blocks and the option to choose where the ad will be displayed, this module does not have anything like that, the idea is to connect to adsense and allow the users to manage how the ads will be displayed using the admin panel provided by the google adsense.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.0-alpha2 Pre-release Mar 9, 2024
1.0.0-alpha1 Pre-release Feb 29, 2024