Discussion:
[Typo3] Google Analytics Script after meta tag
Eric Blom
2005-11-15 20:03:01 UTC
Permalink
I'm trying to setup Google Analytics with Typo3. Google says that
their script must be installed in the <head> </head> section of your
page but after any <meta> tags.

I tried adding page.headTag to the setup of my template as shown
below, but, this puts the script before the meta tags.

page.headTag = <head><script src="http://www.google-analytics.com/
urchin.js" type="text/javascript"></script><script type="text/
javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script>

Can anyone tell me how to add a script after the meta tags in the
head section?

Thank you,
Eric
Jan-Hendrik Heuing [DD]
2005-11-15 20:44:07 UTC
Permalink
Funny, I just had a look at it as well ;)

As I am not having time now, I'll get one of the guys tomorrow morning to
write a small extension for it. We could just publish it if you like....

JH


"Eric Blom" <ericb at piap.com> schrieb im Newsbeitrag
I'm trying to setup Google Analytics with Typo3. Google says that their
script must be installed in the <head> </head> section of your page but
after any <meta> tags.
I tried adding page.headTag to the setup of my template as shown below,
but, this puts the script before the meta tags.
page.headTag = <head><script src="http://www.google-analytics.com/
urchin.js" type="text/javascript"></script><script type="text/
javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script>
Can anyone tell me how to add a script after the meta tags in the head
section?
Thank you,
Eric
Ingo Renner
2005-11-15 21:18:03 UTC
Permalink
Am Tue, 15 Nov 2005 21:44:07 +0100 schrieb Jan-Hendrik Heuing [DD]:

Hi Jan-Hendrik,
Post by Jan-Hendrik Heuing [DD]
As I am not having time now, I'll get one of the guys tomorrow morning to
write a small extension for it. We could just publish it if you like....
Do we really need an extension for this small thing? Wouldn't it be better
to add a description on how to do it in the wiki!?

Another thing I thought of already is: When you're logged in as a BE user
and you're in FE editing mode you might want to disable the inclusion of
the script to not to tamper the stats...


Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Jan-Hendrik Heuing [DD]
2005-11-15 21:23:40 UTC
Permalink
The thing is, it seems as if it should seriously be right before the
</head>-tag, as it does not work "somewhere" in the head-area, which I just
did via TS ;) At least that's what it says in their description as well.

And before I do work on some TS solution or wiki page, I'd spend 15minutes
for the extension ;)

JH


"Ingo Renner" <typo3 at ingo-renner.com> schrieb im Newsbeitrag
Post by Ingo Renner
Hi Jan-Hendrik,
Post by Jan-Hendrik Heuing [DD]
As I am not having time now, I'll get one of the guys tomorrow morning to
write a small extension for it. We could just publish it if you like....
Do we really need an extension for this small thing? Wouldn't it be better
to add a description on how to do it in the wiki!?
Another thing I thought of already is: When you're logged in as a BE user
and you're in FE editing mode you might want to disable the inclusion of
the script to not to tamper the stats...
Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Olivier Dobberkau
2005-11-15 21:47:33 UTC
Permalink
Post by Jan-Hendrik Heuing [DD]
The thing is, it seems as if it should seriously be right before the
</head>-tag, as it does not work "somewhere" in the head-area, which I just
did via TS ;) At least that's what it says in their description as well.
And before I do work on some TS solution or wiki page, I'd spend 15minutes
for the extension ;)
JH
would this work?

since metas are in line 999

page.headerData.999 < plugin.meta

###
temp.google-analysis = HTML
temp.google-analysis.value (
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>
)

page.headerData.1000 < temp.google-analysis


I have problems with the time google takes to do the reports...
I had changed the code for line 40 to line 1000 now...

Greetings,

Olivier
Jan-Hendrik Heuing [DD]
2005-11-15 21:49:33 UTC
Permalink
Nope, sorry, doesn't work ;)
But as this is a foreign installation, I don't know what has been done in
that installation so that things might not be implemented in the best way.
In theory you are right, in practice I did that. Finally I decided to not
spend time on that tonight ;)

JH

"Olivier Dobberkau" <olivier.dobberkau at dkd.de> schrieb im Newsbeitrag
Post by Olivier Dobberkau
Post by Jan-Hendrik Heuing [DD]
The thing is, it seems as if it should seriously be right before the
</head>-tag, as it does not work "somewhere" in the head-area, which I
just did via TS ;) At least that's what it says in their description as
well.
And before I do work on some TS solution or wiki page, I'd spend
15minutes for the extension ;)
JH
would this work?
since metas are in line 999
page.headerData.999 < plugin.meta
###
temp.google-analysis = HTML
temp.google-analysis.value (
<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>
)
page.headerData.1000 < temp.google-analysis
I have problems with the time google takes to do the reports...
I had changed the code for line 40 to line 1000 now...
Greetings,
Olivier
Olivier Dobberkau
2005-11-15 21:51:45 UTC
Permalink
Post by Jan-Hendrik Heuing [DD]
Nope, sorry, doesn't work ;)
But as this is a foreign installation, I don't know what has been done in
that installation so that things might not be implemented in the best way.
In theory you are right, in practice I did that. Finally I decided to not
spend time on that tonight ;)
JH
Good,

greetings,

its good not overdo it.

Olivier
Jan-Hendrik Heuing [DD]
2005-11-15 22:09:24 UTC
Permalink
Post by Olivier Dobberkau
Good,
greetings,
its good not overdo it.
Well, it doesn't mean that I am not working on something else ;)

JH
Dmitry Dulepov
2005-11-16 07:22:42 UTC
Permalink
Hi!
Post by Jan-Hendrik Heuing [DD]
The thing is, it seems as if it should seriously be right before the
</head>-tag, as it does not work "somewhere" in the head-area, which I just
did via TS ;) At least that's what it says in their description as well.
They do not say "right before the </head>". This is exactly what they say:
---------------
Click in the box below to select all code. Next, copy it. Then, paste
the code segment after the <head>, <meta> tags and before the </head>
tag on each page you are planning to track.
---------------

It is important to place script after meta-s because they could get
vsarious information from DOM than (encoding, norobots, description, etc).

The following code will do:
---------------
page.headerData.10 = HTML
page.headerData.10.value = <script
src="http://www.google-analytics.com/urchin.js"
type="text/javascript"></script><script type="text/javascript">_uacct =
"UA-148765-1";urchinTracker();</script>
---------------
Note: there are ONLY TWO lines of TS! Lines can be wrapped by mail
program but there should be only two of them in TS setup!

Dmitry.
Jan-Hendrik Heuing [DD]
2005-11-16 12:45:36 UTC
Permalink
Sure ;)

The point is I'd like a solution I just need to include no matter of what
extensions are installed. So if there are extensions setting up meta's, it
would break.
Post by Dmitry Dulepov
---------------
page.headerData.10 = HTML
page.headerData.10.value = <script
src="http://www.google-analytics.com/urchin.js"
type="text/javascript"></script><script type="text/javascript">_uacct =
"UA-148765-1";urchinTracker();</script>
---------------
Note: there are ONLY TWO lines of TS! Lines can be wrapped by mail
program but there should be only two of them in TS setup!
10 = TEXT
10.value (
more
lines
of
code
)

would also work ;)

JH
Eric Blom
2005-11-16 02:10:24 UTC
Permalink
To update everyone.

I contacted Google about my report because it still says "waiting on
data". I was concerned that the position in the script was causing a
problem. I received an email from Google saying that they were
collecting data from my site and that they are experiencing delays in
processing, "due to overwhelming demand". Therefore, it seems that
the page.headTag solution will work.

I'll update this topic again when I actually see the data at Google.

Cheers,
Eric
Post by Eric Blom
I'm trying to setup Google Analytics with Typo3. Google says that
their script must be installed in the <head> </head> section of your
page but after any <meta> tags.
I tried adding page.headTag to the setup of my template as shown
below, but, this puts the script before the meta tags.
page.headTag = <head><script src="http://www.google-analytics.com/
urchin.js" type="text/javascript"></script><script type="text/
javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script>
Can anyone tell me how to add a script after the meta tags in the
head section?
Thank you,
Eric
Eric Blom
2005-11-16 08:16:50 UTC
Permalink
Update.

My reports in Google have stared working tonight. This is with the
script right after the opening head tag. Dmitry, I'll have to give
you method a try to see if I can follow the letter of the Google law.
Right now though it appears to be working.

The one strange thing I see in the reports though it URLs with my
domain name at the END. For example
/forums/www.psocdeveloper.com

These don't make any sense to me.

Regards,
Eric
Post by Eric Blom
To update everyone.
I contacted Google about my report because it still says "waiting on
data". I was concerned that the position in the script was causing a
problem. I received an email from Google saying that they were
collecting data from my site and that they are experiencing delays in
processing, "due to overwhelming demand". Therefore, it seems that
the page.headTag solution will work.
I'll update this topic again when I actually see the data at Google.
Cheers,
Eric
Post by Eric Blom
I'm trying to setup Google Analytics with Typo3. Google says that
their script must be installed in the <head> </head> section of your
page but after any <meta> tags.
I tried adding page.headTag to the setup of my template as shown
below, but, this puts the script before the meta tags.
page.headTag = <head><script src="http://www.google-analytics.com/
urchin.js" type="text/javascript"></script><script type="text/
javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script>
Can anyone tell me how to add a script after the meta tags in the
head section?
Thank you,
Eric
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Dmitry Dulepov
2005-11-16 08:26:17 UTC
Permalink
Hi!
Post by Eric Blom
My reports in Google have stared working tonight. This is with the
script right after the opening head tag. Dmitry, I'll have to give you
method a try to see if I can follow the letter of the Google law. Right
now though it appears to be working.
The one strange thing I see in the reports though it URLs with my
domain name at the END. For example
/forums/www.psocdeveloper.com
These don't make any sense to me.
There are many bugs there now :( Google products quality goes lower...
For example:
- link to the "example" leads to 404 error
- they claim you can supply site like "sub.domain.com/dir" but this is
not true right now - the very last segment of the URL is expected to
have dot in it (I specially checked their JavaScript to confirm this)

Dmitry.
Dmitry Dulepov
2005-11-16 07:53:28 UTC
Permalink
Hi all.

I experimented a bit. Regardless of where I put the code, Google says it
cannot find it. Looks strange.

Dmitry.
Ingo Renner
2005-11-16 10:04:54 UTC
Permalink
Am Tue, 15 Nov 2005 12:03:01 -0800 schrieb Eric Blom:

shouldn't it be
page.headTag = <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script><head>
with head at the end? IMO the <script> tag should stay in the <head>


Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Eirik Wulff
2005-11-16 21:12:35 UTC
Permalink
Hi,

I just published my extension, 'googleanalytics', to take care of
placing the GA code on *all* pages on a site. It places the GA code
after the title and meta tags, as specified by Google, and just needs a
constants value, plugin.tx_googleanalytics_pi1.uacct, to set the
UA-xxxx-x value for the Google Analytics code. If none is set, the
JavaScript code will say so... A readme.txt file is included, but no
real documentation.

My own site has not been verified as of yet (it seems to take quite a
while between scans), but as far as I can see, the code produced is correct.

I just noticed that mr Dulepov also have published an extension for the
same purpose. Haven't checked it out myself, but it seems we now have
two options.

Share and enjoy,

Eirik Wulff
Dmitry Dulepov
2005-11-17 06:32:54 UTC
Permalink
Hi!
Post by Eirik Wulff
I just noticed that mr Dulepov also have published an extension for the
same purpose. Haven't checked it out myself, but it seems we now have
two options.
I did not publish extension, I wrote TS code that does the same without
extension.

Dmitry.
Eirik Wulff
2005-11-17 09:59:07 UTC
Permalink
Ah, I'm sorry. My mistake, It is Dmitry Tarassenko who has made the
other extension.
Post by Dmitry Dulepov
Hi!
Post by Eirik Wulff
I just noticed that mr Dulepov also have published an extension for the
same purpose. Haven't checked it out myself, but it seems we now have
two options.
I did not publish extension, I wrote TS code that does the same without
extension.
Dmitry.
Carlos Chiari
2005-11-16 22:59:09 UTC
Permalink
Hi Eirik, List:

I have just installed the extension, reviewed my site, found there is my
google analytics code alter every pieces of META tag (although some GMENU
javascripts after that), yet, GOOGLE seems unable to detect the script.

Is this normal?

Regards,

Carlos



-----Mensaje original-----
De: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] En nombre de Eirik Wulff
Enviado el: Mi?rcoles, 16 de Noviembre de 2005 04:13 p.m.
Para: typo3-english at lists.netfielders.de
Asunto: Re: [Typo3] Google Analytics Script after meta tag

Hi,

I just published my extension, 'googleanalytics', to take care of
placing the GA code on *all* pages on a site. It places the GA code
after the title and meta tags, as specified by Google, and just needs a
constants value, plugin.tx_googleanalytics_pi1.uacct, to set the
UA-xxxx-x value for the Google Analytics code. If none is set, the
JavaScript code will say so... A readme.txt file is included, but no
real documentation.

My own site has not been verified as of yet (it seems to take quite a
while between scans), but as far as I can see, the code produced is correct.

I just noticed that mr Dulepov also have published an extension for the
same purpose. Haven't checked it out myself, but it seems we now have
two options.

Share and enjoy,

Eirik Wulff
Eirik Wulff
2005-11-16 23:22:46 UTC
Permalink
Hi,

It seems to me Google are having capacity problems, and do not scan as
often as we'd want them too (like when I click on the 'check status'
button, after updating the code on the site...). My web server log do
not show any hits from the Google Analytics engine (browser signature
'Mediapartners-Google/2') after the initial hit, so it might be some
delay until it checks again.

As far as I know, this might be normal behaviour from Google... Give it
a day or two, and see if things change. Google seems to be doing some
updates to the Adwords site at this time, they have scheduled some hours
downtime in two days. Might be related, might not...
Post by Carlos Chiari
I have just installed the extension, reviewed my site, found there is my
google analytics code alter every pieces of META tag (although some GMENU
javascripts after that), yet, GOOGLE seems unable to detect the script.
Is this normal?
Regards,
Carlos
-----Mensaje original-----
De: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] En nombre de Eirik Wulff
Enviado el: Mi?rcoles, 16 de Noviembre de 2005 04:13 p.m.
Para: typo3-english at lists.netfielders.de
Asunto: Re: [Typo3] Google Analytics Script after meta tag
Hi,
I just published my extension, 'googleanalytics', to take care of
placing the GA code on *all* pages on a site. It places the GA code
after the title and meta tags, as specified by Google, and just needs a
constants value, plugin.tx_googleanalytics_pi1.uacct, to set the
UA-xxxx-x value for the Google Analytics code. If none is set, the
JavaScript code will say so... A readme.txt file is included, but no
real documentation.
My own site has not been verified as of yet (it seems to take quite a
while between scans), but as far as I can see, the code produced is correct.
I just noticed that mr Dulepov also have published an extension for the
same purpose. Haven't checked it out myself, but it seems we now have
two options.
Share and enjoy,
Eirik Wulff
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Dmitry Dulepov
2005-11-17 06:34:53 UTC
Permalink
Hi!
Post by Carlos Chiari
I have just installed the extension, reviewed my site, found there is my
google analytics code alter every pieces of META tag (although some GMENU
javascripts after that), yet, GOOGLE seems unable to detect the script.
I got a reply from Google support about it:
-------------------------------
Hello,

Thank you for your email. We have received your report regarding the
problem with the "Check Status" alert update. Our engineers are
currently working to solve the problem and hope to reach a resolution
shortly. This will not affect data collection or report generation if
you have already tagged your website with the Google Analytics Tracking
Code.

Thank you for your patience.

For additional questions, please visit the Analytics Help Center at
http://www.google.com/support/analytics. If you're unable to find an
answer to your question on our site, please feel free to reply to this
email.

Sincerely,

Jessica
Analytics Support

*************************
Share your knowledge and learn from others at the Google Analytics Help
forum: http://www.google.com/analytics/analyticshelp
*************************
-------------------------------

Dmitry.
Eirik Wulff
2005-11-17 09:56:31 UTC
Permalink
Aha,

It seems Google Analytics started gathering data for my site during the
night. I guess they could have been more sepcific about such delays in
their documentation.
Post by Dmitry Dulepov
Hi!
Post by Carlos Chiari
I have just installed the extension, reviewed my site, found there is my
google analytics code alter every pieces of META tag (although some GMENU
javascripts after that), yet, GOOGLE seems unable to detect the script.
-------------------------------
Hello,
Thank you for your email. We have received your report regarding the
problem with the "Check Status" alert update. Our engineers are
currently working to solve the problem and hope to reach a resolution
shortly. This will not affect data collection or report generation if
you have already tagged your website with the Google Analytics Tracking
Code.
Thank you for your patience.
For additional questions, please visit the Analytics Help Center at
http://www.google.com/support/analytics. If you're unable to find an
answer to your question on our site, please feel free to reply to this
email.
Sincerely,
Jessica
Analytics Support
*************************
Share your knowledge and learn from others at the Google Analytics Help
forum: http://www.google.com/analytics/analyticshelp
*************************
-------------------------------
Dmitry.
Dmitry Dulepov
2005-11-17 10:04:37 UTC
Permalink
Hi!
Post by Eirik Wulff
It seems Google Analytics started gathering data for my site during the
night. I guess they could have been more sepcific about such delays in
their documentation.
I am waiting for 25 hours already. Firsts they promised 6, now 12...

Dmitry.
Dimitri Tarassenko
2005-11-17 02:08:42 UTC
Permalink
http://typo3.org/extensions/repository/search/m1_google_analytics/

I guess I started at about the same time with Eirik, but I haven't
seen this thread yet.

I have implemented document download tracking and outbound link
tracking, though. Also, the plugin is controlled from template
TypoScript, so you can have different websites in the same TYPO3
pagetree tracked separately by Google.

--
Dimitri Tarassenko
Ingo Renner
2005-11-17 09:58:12 UTC
Permalink
Post by Dimitri Tarassenko
http://typo3.org/extensions/repository/search/m1_google_analytics/
why the hell do we need two extensions for the exactly same purpose? Can't
you guys work together just one time?

Anyway I'd like to see the following in whatever extension:
If a BE user is logged in and is doing FE editing the inclusing of the
tracking script should be disabled to not tamper the stats.


Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Eirik Wulff
2005-11-17 10:11:08 UTC
Permalink
Your rudeness will be ignored, as will your request...
Post by Ingo Renner
Post by Dimitri Tarassenko
http://typo3.org/extensions/repository/search/m1_google_analytics/
why the hell do we need two extensions for the exactly same purpose? Can't
you guys work together just one time?
If a BE user is logged in and is doing FE editing the inclusing of the
tracking script should be disabled to not tamper the stats.
Ingo
Ingo Renner
2005-11-17 10:16:09 UTC
Permalink
Post by Eirik Wulff
Your rudeness will be ignored, as will your request...
so why did you answer?
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Jane Larsen
2005-11-17 10:39:00 UTC
Permalink
He might just want to let you know that you were rude, right?

People working on Typo3 are spread all over the world and work in
their sparetime for free... If there are features that happens more
than once (eg. the news plugins) it might be because more than one got
the same idea or might think that they had a better way of doing the
task...

The feature you want: well go ahead at make it! That's what people do here...

If you don't want to do it yourself there are plenty of companys who
can do it for you but since they (more or less) earn their living by
providing Typo3 solutions they would want som cash to cover
expenses...

//Jane Larsen

//Jane Larsen
Post by Ingo Renner
Post by Eirik Wulff
Your rudeness will be ignored, as will your request...
so why did you answer?
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
_______________________________________________
Typo3-english mailing list
Typo3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Ingo Renner
2005-11-17 10:49:44 UTC
Permalink
Am Thu, 17 Nov 2005 11:39:00 +0100 schrieb Jane Larsen:

Hi Jane,
Post by Jane Larsen
He might just want to let you know that you were rude, right?
yes admitted, but this time I had to say what I think in clear words.
Post by Jane Larsen
People working on Typo3 are spread all over the world and work in
their sparetime for free...
So do I
Post by Jane Larsen
If there are features that happens more
than once (eg. the news plugins) it might be because more than one got
the same idea or might think that they had a better way of doing the
task...
Yes, but that still doesn't keep them from communicating and negotiation
the best way of doing this. This here is not called community for nothing.
Post by Jane Larsen
The feature you want: well go ahead at make it! That's what people do here...
I will do so, but not by making another extension. Instead I will do it the
better way and provide a patch.


regards
Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Jan-Hendrik Heuing [DD]
2005-11-17 11:09:13 UTC
Permalink
Post by Eirik Wulff
Your rudeness will be ignored, as will your request...
Well, there is actualy some truth about it.... Why do people publish
extensions without looking what is online. Glad we did that before we did
work out the extension WHICH WAS ANNOUNCED ;)

But anyway.... Seems Dimitri changed his code. I first was a bit
disapointed, that it used the PHP_SCRIPT object etc., now it's solved in a
much better way. Implementing filter for IP's and BE-Users logged in, maybe
FE-Users as well seems to be a rather good idea. As Ingo said he will go
into that. I suggest to disable the other google-extension, as Dimitri's
goes a little further...

JH
Dimitri Tarassenko
2005-11-17 13:50:39 UTC
Permalink
I'll just sum up several points if noone minds.

Q. Why do we need an extension?
A. Because you can't follow Google's instructions on placing their
javascript code inside <head> container by using TypoScript. Anything
you insert from TypoScript will end up _above_ <title> element and
this will break several reports that are based on document's title.

Q. Why do we need several extensions?
A. Because variety and competition is good. I did check the repository
before building one and Eirik's wasn't published when I started mine.
I don't read english list on a daily basis. Nevertheless, I don't see
a problem with having two extensions that do the same thing in
different ways.

Q. Why do people write their own extensions and not just cooperate?
A. Because in small things like this one writing your own is sometimes
a faster way to get the functions you need implemented.

and finally

Q. Filtering BE and FE/editing mode views
A. ... (in my humble opinion) should be done by implementing filters
in your analytics profile. If we implement this in the extension, we
are still left with your own traffic when you are not logged in. The
solution to this problem is to tune the filters in your Analytics
account, either by IP or just drop any visits that have /typo3/ as a
step in them. If I am not mistaken about what was available in Urchin,
this is available in GA.

--
Dimitri Tarassenko
Jan-Hendrik Heuing [DD]
2005-11-17 15:26:17 UTC
Permalink
Hi Dimitri,
Post by Dimitri Tarassenko
Q. Filtering BE and FE/editing mode views
A. ... (in my humble opinion) should be done by implementing filters
in your analytics profile. If we implement this in the extension, we
are still left with your own traffic when you are not logged in. The
solution to this problem is to tune the filters in your Analytics
account, either by IP or just drop any visits that have /typo3/ as a
step in them. If I am not mistaken about what was available in Urchin,
this is available in GA.
generaly you are right. But you are leaving out pageviews by backend users.
I know about a couple of editors using frontend editing, so they would be
taken as real reaquests.

Of course you don't need to adapt your extension to anything like that ;)
But I am thinking the same way Ingo does: It does make more sense extending
a good extension to a better extension instead of starting a new extension
which is 90% a copy of extensions already available ;)

JH
Dimitri Tarassenko
2005-11-17 16:16:29 UTC
Permalink
Post by Jan-Hendrik Heuing [DD]
generaly you are right. But you are leaving out pageviews by backend users.
I know about a couple of editors using frontend editing, so they would be
taken as real reaquests.
Of course you don't need to adapt your extension to anything like that ;)
But I am thinking the same way Ingo does: It does make more sense extending
a good extension to a better extension instead of starting a new extension
which is 90% a copy of extensions already available ;)
Ok you convinced me. ;)) Implemented in 1.2.0. ;)

--
Dimitri Tarassenko
Dmitry Dulepov
2005-11-21 09:25:08 UTC
Permalink
Hi!
Post by Dimitri Tarassenko
Q. Why do we need an extension?
A. Because you can't follow Google's instructions on placing their
javascript code inside <head> container by using TypoScript. Anything
you insert from TypoScript will end up _above_ <title> element and
this will break several reports that are based on document's title.
You can put this script into your HTML template... Not sure about MTB
but with FTB works without any problem. No need for extensions...

Dmitry.
Dimitri Tarassenko
2005-11-21 12:25:49 UTC
Permalink
Post by Dmitry Dulepov
You can put this script into your HTML template... Not sure about MTB
but with FTB works without any problem. No need for extensions...
You can't do it in MTB. <title> tag is going to be inserted _after_
anything you will put in <head>.

--
Dimitri Tarassenko
Dmitry Dulepov
2005-11-21 12:46:30 UTC
Permalink
Hi!
Post by Dimitri Tarassenko
Post by Dmitry Dulepov
You can put this script into your HTML template... Not sure about MTB
but with FTB works without any problem. No need for extensions...
You can't do it in MTB. <title> tag is going to be inserted _after_
anything you will put in <head>.
Ok. So, FTB is really FTB :) With FTB you can.

Dmitry.
Dmitry Dulepov
2005-11-17 10:48:31 UTC
Permalink
Hi!
Post by Ingo Renner
why the hell do we need two extensions for the exactly same purpose? Can't
you guys work together just one time?
Well, this is a typical problem, you know :) How many *_product we have?
Even two google sitemaps...

But in such case I do not understand why we need an extension to add
simple script tags to the page header - this can be perfectly
accomplished thorugh TS or template...

Dmitry.
Ingo Renner
2005-11-17 10:55:08 UTC
Permalink
Am Thu, 17 Nov 2005 12:48:31 +0200 schrieb Dmitry Dulepov:

Hi Dmitry,
Post by Dmitry Dulepov
Well, this is a typical problem, you know :) How many *_product we have?
I see the sense in some of them as they are working very differently
sometimes. But in general I agree and this is why I had to post this.
Post by Dmitry Dulepov
But in such case I do not understand why we need an extension to add
simple script tags to the page header - this can be perfectly
accomplished thorugh TS or template...
yes, as described earlier in this thread. But after having a look at
Dimitri's implementaion it makes sense to put it in an extension as he has
provided good configurability and flexibility.

regards
Ingo
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
Dmitry Dulepov
2005-11-21 10:12:37 UTC
Permalink
Btw, Google analytics still does not work for me. 6 days passed from
adding my site to analytics pages and setting code to it.

Does anyone else experience the same problem?

Dmitry.
I'm trying to setup Google Analytics with Typo3. Google says that their
script must be installed in the <head> </head> section of your page but
after any <meta> tags.
I tried adding page.headTag to the setup of my template as shown below,
but, this puts the script before the meta tags.
page.headTag = <head><script src="http://www.google-analytics.com/
urchin.js" type="text/javascript"></script><script type="text/
javascript"> _uacct = "UA-xxxxx-x"; urchinTracker();</script>
Can anyone tell me how to add a script after the meta tags in the head
section?
Thank you,
Eric
Dimitri Tarassenko
2005-11-21 12:26:11 UTC
Permalink
Post by Dmitry Dulepov
Btw, Google analytics still does not work for me. 6 days passed from
adding my site to analytics pages and setting code to it.
Does anyone else experience the same problem?
Yes.

--
Dimitri Tarassenko
Dave Green
2005-11-21 14:31:13 UTC
Permalink
Post by Dimitri Tarassenko
Post by Dmitry Dulepov
Btw, Google analytics still does not work for me. 6 days passed from
adding my site to analytics pages and setting code to it.
Does anyone else experience the same problem?
Yes.
--
Dimitri Tarassenko
There's a proable answer to the problem here -
http://www.google.com/analytics/sign_up.html
which today says:

"Google Analytics has experienced extremely strong demand, and as a
result, we have temporarily limited the number of new signups as we
increase capacity. In the meantime, please submit your name and email
address and we will notify you as soon as we are ready to add new
accounts. Thank you for your patience."

Best wishes
David Green
Eric Blom
2005-11-21 15:51:48 UTC
Permalink
Dmitry,
My account is working. It took more than 24 hours for the first
report to show up. However, it seems Dave has already posted the real
answer and that is that Google can't deal with all the requests.

Initially the interaction with reports was quite slow. Today however,
they seem much snappier.

Eric
Post by Dmitry Dulepov
Btw, Google analytics still does not work for me. 6 days passed from
adding my site to analytics pages and setting code to it.
Does anyone else experience the same problem?
Dmitry.
Dmitry Dulepov
2005-11-22 07:38:58 UTC
Permalink
Hi!
My account is working. It took more than 24 hours for the first report
to show up. However, it seems Dave has already posted the real answer
and that is that Google can't deal with all the requests.
Initially the interaction with reports was quite slow. Today however,
they seem much snappier.
Yep, mine started to work as well :) Now I am happy.

Dmitry.

Loading...