/dokuwiki-plugin-googleads

Allows you to include Google AdSense advertising into your wiki template.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Google AdSense for DokuWiki

License

About

This tool allows you to set a code for use with Google AdSense, which allows you to put targeted advertisements on your site.

The plugin also exports a function for use with your template, so you will have to insert the following code into your template's main.php, somewhere inside of the <head></head> tags.

<?php
if (file_exists(DOKU_PLUGIN.'googleads/code.php')) include_once(DOKU_PLUGIN.'googleads/code.php');
if (function_exists('gads_code')) gads_code();
?>

Note: Inserting the code above is required, not optional.

Template Authors Note: You can insert the above code and make your template "Google AdSense Ready", even if your users do not use Google AdSense (or have this plugin.)

Install / Upgrade

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Setup

All further documentation for this plugin can be found at:

Contributing

The official repository for this plugin is available on GitHub:

The plugin thrives from community contributions. If you're able to provide useful code changes or bug fixes, they will likely be accepted to future versions of the plugin.

If you find my work helpful and would like to give back, consider joining me as a GitHub sponsor.

Thanks!

--Terence