[aida] Use Google Analytics on AIDA/Web

nicolas petton petton.nicolas at gmail.com
Mon Sep 15 21:03:46 CEST 2008


2008/9/15, Janko Mivšek <janko.mivsek at eranova.si>:
> Вася Чайко wrote:
>
>  > I wish to use on a site google analytics, i.e. to me it is necessary to
>  > add on each page of a site some lines in head. Whether if a simple way
>  > to make it?
>
>
> The simplest is to add requested HTML code as plain text to your
>  element, for instance:
>
>         e addText: '<span>this is some HTML text</span>'
>
>  Nicer would be to make a subclass of element and put all needed in it,
>  let's say GoogleAnalyticsElement.
>
>  Well, I would be interested in such element for addition to Aida ... :)

I did it for my blog. I can share it, but I don't think that it should
be included in Aida, but in a separate package.

What do you think?


Cheers!

Nico


More information about the Aida mailing list