<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Nahed<br>
<br>
I don't know what you want to do with this script, but as a
general syntax rule you should take note of two simple rules<br>
<ol>
<li>quotes (') are reserved chars in PFT's to declare strings</li>
<li>when you need to use a quote (<b>'</b>) inside your
function, then you have to use inverted quotes (<b>`</b>) to
declare the function</li>
</ol>
So, I'd try to enclose your full script between inverted quotes,
something like this<br>
<br>
<div><b><font color="#cc0000"><big><big>`</big></big></font></b><font
face="Courier New, Courier, monospace"><script><br>
</font></div>
<div><font face="Courier New, Courier, monospace">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){</font></div>
<div><font face="Courier New, Courier, monospace">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),</font></div>
<div><font face="Courier New, Courier, monospace">
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)</font></div>
<div><font face="Courier New, Courier, monospace">
})(window,document,'script','//<a moz-do-not-send="true"
href="http://www.google-analytics.com/analytics.js">www.google-analytics.com/analytics.js</a>','ga');</font></div>
<div><font face="Courier New, Courier, monospace"> ga('create',
'XXXXXXXX-2', 'auto');</font></div>
<div><font face="Courier New, Courier, monospace"> ga('send',
'pageview');</font></div>
<div><font face="Courier New, Courier, monospace"> </script></font><b><font
color="#cc0000"><big><big>`</big></big></font></b><br>
</div>
<br>
<br>
Regards<br>
Ernesto Spinak<br>
<br>
<br>
<br>
El 29/06/2015 a las 9:39, nahed el shazly escribió:<br>
</div>
<blockquote
cite="mid:CADKip9URbb5H1HxYtjUk=pcke-eFdavCPg_Qu1w5=0_zaiM33g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Dear Sirs,</div>
<div><br>
</div>
<div>I was trying to include the following Google analytics code
before the </head> tag one of the pfts which yields the
results and it seems that it creates a conflict with the
script within the file so no results are displayed. Could you
please advise where to add this tag and all the necessary tags
needed to run it smoothly.</div>
<div><br>
</div>
<div><script><br>
</div>
<div>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){</div>
<div> (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),</div>
<div>
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)</div>
<div> })(window,document,'script','//<a moz-do-not-send="true"
href="http://www.google-analytics.com/analytics.js">www.google-analytics.com/analytics.js</a>','ga');</div>
<div><br>
</div>
<div> ga('create', 'XXXXXXXX-2', 'auto');</div>
<div> ga('send', 'pageview');</div>
<div><br>
</div>
<div></script></div>
<div><br>
</div>
<div>When I tried to add the code to an external javascript file
and refer to it from the pft, I received the following </div>
<div>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">WXIS|compiler error|invalid identifier|(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i|</pre>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Looking forward for your feedback.</pre>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Thanks</pre>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">
</pre>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">
</pre>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
isis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:isis-users@iccisis.org">isis-users@iccisis.org</a>
To manage your own subscription options go to: <a class="moz-txt-link-freetext" href="http://lists.iccisis.org/listinfo/isis-users">http://lists.iccisis.org/listinfo/isis-users</a>
Or contact Henk Rutten: <a class="moz-txt-link-abbreviated" href="mailto:hlrutten@xs4all.nl">hlrutten@xs4all.nl</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
.^. .^.
( ) ( )
=== ===
=[=]================================[=]=
| | Ernesto Spinak | |
| | <a class="moz-txt-link-abbreviated" href="mailto:spinaker@adinet.com.uy">spinaker@adinet.com.uy</a> | |
| | Montevideo, Uruguay | |
| | tel/fax (598) 2622-3352 | |
| | celular (598) 99612238 | |
=[=]================================[=]=
=== ===
( ) ( )
V V </pre>
</body>
</html>