From mboxrd@z Thu Jan 1 00:00:00 1970 From: ishi soichi Subject: Google Analytics tracking code for org-export-as-html Date: Wed, 1 Jun 2011 12:10:51 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51dd0ef38aa1404a49dde48 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRbph-0003to-5t for emacs-orgmode@gnu.org; Tue, 31 May 2011 23:10:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRbpe-0004KG-MN for emacs-orgmode@gnu.org; Tue, 31 May 2011 23:10:56 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:51076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRbpe-0004Jh-5O for emacs-orgmode@gnu.org; Tue, 31 May 2011 23:10:54 -0400 Received: by pzk4 with SMTP id 4so2845237pzk.0 for ; Tue, 31 May 2011 20:10:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --bcaec51dd0ef38aa1404a49dde48 Content-Type: text/plain; charset=ISO-8859-1 Hi. I would like to add a Google Analytics tracking code to the exported html file from an org-file. According to the instruction of GAnalytics, the tracking code must be right before "" tag. And I assume it's OK as long as the code is between and . The tracking code needs to be in the html file every time I export it as html. So, I need to somehow add the code segment in the org-file. #+BEGIN_HTML ... #+END_HTML This seems to add whatever between to a location after tag. Is there anyway to achieve this? soichi --bcaec51dd0ef38aa1404a49dde48 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi. I would like to add a Google Analytics tracking code to the exported ht= ml file from an org-file.
According to the instruction of GAnalytics, t= he tracking code must be right before "</head>" tag. And I = assume it's OK as long as the code is between <head> and </hea= d>.

The tracking code needs to be in the html file every ti= me I export it as html. =A0So, I need to somehow add the code segment in th= e org-file.

#+BEGIN_HTML
...
#+END_HTML

This seems to add whatever b= etween to a location after <body> tag.=A0

Is= there anyway to achieve this?

soichi
--bcaec51dd0ef38aa1404a49dde48--