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
- Create your Google Adsense account.
- Configure the account and reach the step of incorporating the adsense to your site.
- Install the module as you usually do, see: https://www.drupal.org/node/895232 for more details
- Now you can go to Admin > Config > Services > Easy Adsense(admin/config/services/easy-adsense)
- Using the
clientcode provided by adsense, fill the field and hit save - 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.
Project information
- Project categories: Integrations
7 sites report using this module
- Created by murilohp on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Added gitlab ci integration

