You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Felipe Veloso <fv...@gmail.com> on 2009/12/24 20:17:03 UTC

Need help: problem with Google Analytics tracking code

Hey guys,

Maybe you can help me with this. I have a blog in a Chilean newspaper's
online edition (it uses Apache Roller):

http://blog.latercera.com/blog/fveloso/
http://blog.latercera.com/blog/fveloso/ 

The URL is the same for the other bloggers in the newspaper website (with
each username instead of 'fveloso' of course).

For each one of my posts the URL has the form:

http://blog.latercera.com/blog/fveloso/post_n

Ok, so I emailed those guys asking them to add the Google analytics tracking
code to my personal blog.

Their answer was:

«Unfortunately we cannot place the tracking code in your blog, since the
themes are shared by all bloggers».

I'm no expert in this so here's my question: ¿is there any place in my
personal blog where the tracking code can be put such no other blog is
modified and of course it tracks all my posts?

I read 
http://old.nabble.com/Where-to-place-tracking-code-to9001055s12275.html#a9001055
somewhere else in this forum  that the tracking code can be placed in
'Roller macros', but I have no I idea if this is applied to all blogs or
what.

I hope you can give me some steps to send to the people in the newspaper
since they are not able/willing to help me.

Thanks a lot in advance and Season's Greetings!


Felipe Veloso

-- 
View this message in context: http://old.nabble.com/Need-help%3A-problem-with-Google-Analytics-tracking-code-tp26916539s12275p26916539.html
Sent from the Roller - User mailing list archive at Nabble.com.

Re: Need help: problem with Google Analytics tracking code

Posted by Dave <sn...@gmail.com>.
Comments below...

On Thu, Dec 24, 2009 at 2:17 PM, Felipe Veloso <fv...@gmail.com> wrote:
> Maybe you can help me with this. I have a blog in a Chilean newspaper's
> online edition (it uses Apache Roller):
> Ok, so I emailed those guys asking them to add the Google analytics tracking
> code to my personal blog.
>
> Their answer was:
>
> «Unfortunately we cannot place the tracking code in your blog, since the
> themes are shared by all bloggers».
>
> I'm no expert in this so here's my question: ¿is there any place in my
> personal blog where the tracking code can be put such no other blog is
> modified and of course it tracks all my posts?


Sorry about the delayed response.

If your Roller admin has turned off Roller theme editing capabilities
then the answer that they gave you is partly correct. At this point
your admins have three options for allowing Google Analytics:

1) Use one Google Analytics account to track the entire blog site (all
blogs), add the Google Analytics HTML/JS code to every blog and give
each blogger access to that Google Analytics account.

2) Write some Java code to create a Roller "page model" plugin that
returns the Google Analytics code (e.g. the "UA-xxxxxx-x" associated
with your analytics account) for each blog. Then put the Google
Analytics code in the shared blog templates and use the plugin to
insert the right Google Analytics account number in each blog.

3) Change policy! Turn ON theme editing so that each blog owner can
setup his own Google Analytics account and edit templates and add the
Google Analytics HTML/JavaScript snippet to his own blog.

I prefer option #3 because it is the easiest and I believe that all
bloggers should have the option of editing their own blog templates --
obviously, not everybody agrees with me ;-)

Hope that helps...

- Dave