Use Google Analytics on AIDA/Web

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Use Google Analytics on AIDA/Web

Вася Чайко
Hi.

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?
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Use Google Analytics on AIDA/Web

Janko Mivšek
Вася Чайко 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 ... :)

Janko

--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida
Reply | Threaded
Open this post in threaded view
|

Re: Use Google Analytics on AIDA/Web

Nicolas Petton
2008/9/15, Janko Mivšek <[hidden email]>:

> Вася Чайко 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
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida