implate GoogleAdsense script

21 views
Skip to first unread message

merlinw...@googlemail.com

unread,
Nov 22, 2007, 7:58:11 AM11/22/07
to TiddlyWiki
Hello!

I would like to implant a script (GoogleAdSense) into my TiddlyWiki. I
implanted it into the MainMenu this way, but it doesn´t work.

<html>
<script type="text/javascript"><!--
google_ad_client = "pub-6925414824174035";
//160x600, Erstellt 21.11.07
google_ad_slot = "5019992911";
google_ad_width = 160;
google_ad_height = 600;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</html>

Nothing happens after saving. May somebody help me?

merlin

metaltailz

unread,
Nov 22, 2007, 8:26:41 PM11/22/07
to TiddlyWiki
> <html>
> <script type="text/javascript"><!--
> google_ad_client = "pub-6925414824174035";
> //160x600, Erstellt 21.11.07
> google_ad_slot = "5019992911";
> google_ad_width = 160;
> google_ad_height = 600;
> //--></script>
> <script type="text/javascript"
> src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
> </script>
> </html>

The Google Adsense code requires javascript, but by default TiddlyWiki
doesn't know how to interpret the javascript code, so you have to
download and install a plugin that enables it. I believe that the
plugin InlineJavascript found at http://tiddlytools.com should do it,
but I am not completely sure.

FND

unread,
Nov 23, 2007, 2:45:30 AM11/23/07
to Tiddl...@googlegroups.com
> I would like to implant a script (GoogleAdSense) into my TiddlyWiki. I
> implanted it into the MainMenu this way, but it doesn´t work.

Raw script tags within tiddlers are not interpreted by default (though
it is possible with InlineJavascriptPlugin*).

This sort of thing should probably go into either of these shadow tiddlers:
MarkupPreHead
MarkupPostHead
MarkupPreBody
MarkupPostBody

I remember there was a blog posting on how to use Google Adsense with
TiddlyWiki not too long ago, but I can't seem to find that anymore...

HTH.


-- F.


* http://www.tiddlytools.com/#InlineJavascriptPlugin

merlinw...@googlemail.com

unread,
Nov 23, 2007, 8:25:41 AM11/23/07
to TiddlyWiki
I have installed the "inlineJavaScript" but alle the same it doesn´t
work! Any ideas?

Merlin

FND

unread,
Nov 27, 2007, 3:06:02 AM11/27/07
to Tiddl...@googlegroups.com
> I have installed the "inlineJavaScript" but alle the same it doesn´t
> work! Any ideas?

Sorry, I've never tried AdSense myself - try searching the group archives.

By the way: The blog posting I'd mentioned was on Google Analytics, not
Google AdSense:
http://tinyurl.com/24vsbp
(http://www.hawksworx.com/journal/2007/07/05/tracking-tiddlywiki-with-google-analytics/)
Might still give you some clues though...

-- F.

Reply all
Reply to author
Forward
0 new messages