how to add <script> in <header>

Aapo Talvensaari aapo.talvensaari at gmail.com
Tue Dec 29 11:18:42 UTC 2015


On 29 December 2015 at 11:07, 天河石 - 谢金鹏 <2305958068 at qq.com> wrote:

> I like to add the following entry:
>
> <script type="text/javascript" async="async" src="
> http://www.google-analytics.com/ga.js"></script>
>
>
> in <head> section. How do I do it?
>

Okay, I will do it for you:

<head>
  <script type="text/javascript" async="async" src="
http://www.google-analytics.com/ga.js"></script>
</head>

If you later need to remove it, it is quite simple:

<head>
</head>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151229/aa2e3fb6/attachment.html>


More information about the nginx mailing list