emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ishi soichi <soichi777@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Google Analytics tracking code for org-export-as-html
Date: Wed, 1 Jun 2011 12:10:51 +0900	[thread overview]
Message-ID: <BANLkTi=R7+RyzuPuL_kLRQzrt0ny_Rt1bw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

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 "</head>" tag. And I assume it's OK as long as the code is between
<head> and </head>.

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 <body> tag.

Is there anyway to achieve this?

soichi

[-- Attachment #2: Type: text/html, Size: 756 bytes --]

             reply	other threads:[~2011-06-01  3:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01  3:10 ishi soichi [this message]
2011-06-01  5:06 ` Google Analytics tracking code for org-export-as-html Tomas Hlavaty
2011-06-01  7:42   ` Sebastien Vauban
2011-06-02  0:52   ` ishi soichi
     [not found]     ` <87k4d4zo3y.fsf@logand.com>
2011-06-02  7:33       ` ishi soichi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=R7+RyzuPuL_kLRQzrt0ny_Rt1bw@mail.gmail.com' \
    --to=soichi777@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).