[nodebb-plugin-adsense] Google Adsense
-
-
If nodebb can assemble the pages server-side so adsense will work, it would be a big advantage over Discourse.
Not being able to use adsense is a dealkiller for a lot of people.
-
I don't think google adsense works with ajax, however I managed to get http://www.google.ca/doubleclick/publishers/small-business/ working in a widget for more than 3 page views.
I followed their guide and placed the code they give into the header of the page with the custom JS tab from ACP and then placed a widget that has this in it.
-
If you don't mind cold loading pages you can always disable ajaxify, that will serve a brand new page for every link and thus will be compatible with adsense.
EDIT: The other possibility would be to cache your adsense html and serve the same ad for every page, until the user comes back or refreshes manually
-
Can someone npm install this one and see if it now works for v0.6.x?
https://github.com/drewdotpro/nodebb-plugin-google-adsenseI don't have an AdSense account yet =(
-
@Drew-Llewellyn I've got the following error:
ver. NodeBB v0.6.0.
-
@jun @Drew-Llewellyn @Tom-Riddleff @Dave-Huggy-Jones try the latest version. It should be compatible with NodeBB v0.6.x.
-
I'm getting this error in the console log:
http://78.129.159.2/google-adsense.config.json 404 (Not Found)
My installation is on /forum whch evals ok when placed in the url directly like
http://78.129.159.2/forum/google-adsense.config.json
EDIT: Done a pull request for a fix on this.
-
@baris Thanks for the update!
I found two version of google adsense plugin which are 0.0.12 and 0.0.13.
Only 0.0.12 is available for install.
When I tried to install 0.0.13 version it shown error message
(I'm using 0.9.0 version nodeBB)
I used 0.0.12 version but all the ads were blank