Hello.
This my decision of a problem of addition google analytics on a site.
1. It is necessary to add one method in Class DefaultWebStyle:
googleAnalyticsTrackingCode: aString
self app
addHeader: 'script'
value: #( 'type="text/javascript"' 'var gaJsHost = (("https:"
== document.location.protocol) ? "
https://ssl." : "
http://www.");
document.write(unescape("%3Cscript src=''" + gaJsHost +
"
google-analytics.com/ga.js''
type=''text/javascript''%3E%3C/script%3E"));' ).
self app
addHeader: 'script'
value: (Array
with: 'type="text/javascript"'
with: 'var pageTracker = _gat._getTracker("' , aString ,
'"); pageTracker._initData(); pageTracker._trackPageview();').
2. In
style of a site to add a method:
htmlHeaderElements
super htmlHeaderElements.
self googleAnalyticsTrackingCode:
'UA-2231739-3'. "tracking code for site"
"other header elements"
_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida