* Google Analytics tracking code for org-export-as-html
@ 2011-06-01 3:10 ishi soichi
2011-06-01 5:06 ` Tomas Hlavaty
0 siblings, 1 reply; 5+ messages in thread
From: ishi soichi @ 2011-06-01 3:10 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Google Analytics tracking code for org-export-as-html
2011-06-01 3:10 Google Analytics tracking code for org-export-as-html ishi soichi
@ 2011-06-01 5:06 ` Tomas Hlavaty
2011-06-01 7:42 ` Sebastien Vauban
2011-06-02 0:52 ` ishi soichi
0 siblings, 2 replies; 5+ messages in thread
From: Tomas Hlavaty @ 2011-06-01 5:06 UTC (permalink / raw)
To: emacs-orgmode
Hi soichi,
> Hi. I would like to add a Google Analytics tracking code to the
> exported html file from an org-file.
ah, please don't do that.
> code is between <head> and </head>.
You could sneak it in using #+STYLE or org-publish-project-alist :style.
Cheers,
Tomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Google Analytics tracking code for org-export-as-html
2011-06-01 5:06 ` Tomas Hlavaty
@ 2011-06-01 7:42 ` Sebastien Vauban
2011-06-02 0:52 ` ishi soichi
1 sibling, 0 replies; 5+ messages in thread
From: Sebastien Vauban @ 2011-06-01 7:42 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Tomas,
Tomas Hlavaty wrote:
>> Google Analytics code is between <head> and </head>.
>
> You could sneak it in using #+STYLE or org-publish-project-alist :style.
Wouldn't it make more sense to put it in `org-export-html-scripts'? (untested)
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Google Analytics tracking code for org-export-as-html
2011-06-01 5:06 ` Tomas Hlavaty
2011-06-01 7:42 ` Sebastien Vauban
@ 2011-06-02 0:52 ` ishi soichi
[not found] ` <87k4d4zo3y.fsf@logand.com>
1 sibling, 1 reply; 5+ messages in thread
From: ishi soichi @ 2011-06-02 0:52 UTC (permalink / raw)
To: Tomas Hlavaty; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
Thanks for your reply.
>> Hi. I would like to add a Google Analytics tracking code to the
>> exported html file from an org-file.
>ah, please don't do that.
May I ask why I shouldn't do this ?
2011/6/1 Tomas Hlavaty <tom@logand.com>
> Hi soichi,
>
> > Hi. I would like to add a Google Analytics tracking code to the
> > exported html file from an org-file.
>
> ah, please don't do that.
>
> > code is between <head> and </head>.
>
> You could sneak it in using #+STYLE or org-publish-project-alist :style.
>
> Cheers,
>
> Tomas
>
>
[-- Attachment #2: Type: text/html, Size: 1087 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Google Analytics tracking code for org-export-as-html
[not found] ` <87k4d4zo3y.fsf@logand.com>
@ 2011-06-02 7:33 ` ishi soichi
0 siblings, 0 replies; 5+ messages in thread
From: ishi soichi @ 2011-06-02 7:33 UTC (permalink / raw)
To: Tomas Hlavaty, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 410 bytes --]
Oh, I see. It's a simple reason. Thanks for pointing it out. I will be
careful.
soichi
2011/6/2 Tomas Hlavaty <tom@logand.com>
> Hi soichi,
>
> > May I ask why I shouldn't do this ?
>
> data protection, privacy. Some people don't like being spied on, esp by
> untrusted third-parties not related to your website content. But this
> goes beyond your original technical question.
>
> Cheers,
>
> Tomas
>
[-- Attachment #2: Type: text/html, Size: 763 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-02 7:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 3:10 Google Analytics tracking code for org-export-as-html ishi soichi
2011-06-01 5:06 ` 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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.