<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Murat Topçu.Net &#187; analytics</title>
	<atom:link href="http://www.murattopcu.net/tag/analytics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.murattopcu.net</link>
	<description>Bilgisayarım, mutfak ve tuvalet.</description>
	<lastBuildDate>Mon, 20 Jun 2011 14:08:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Yeni google analytics kodu W3C standartlarına uymuyor.</title>
		<link>http://www.murattopcu.net/yeni-google-analytics-kodu-w3c-standartlarina-uymuyor.html</link>
		<comments>http://www.murattopcu.net/yeni-google-analytics-kodu-w3c-standartlarina-uymuyor.html#comments</comments>
		<pubDate>Mon, 24 Dec 2007 22:49:12 +0000</pubDate>
		<dc:creator>Murat Topçu</dc:creator>
				<category><![CDATA[İnternet]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[standart]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://www.murattopcu.com/yeni-google-analytics-kodu-w3c-standartlarina-uymuyor.html</guid>
		<description><![CDATA[Sitemin doğrulandığını kontrol ederken karşıma aşağıdaki haliyle sitemin doğrulanmadığına dair mesajlar geldi. Validation Output:  7 Errors1. Error Line 502, Column 96: document type does not allow element &#8220;script&#8221; here.…ics.com/ga.js‘ type=’text/javascript’&#62;\&#60;\&#60;wbr&#62;&#60;/wbr&#62;/script&#62;” );? The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — [...]]]></description>
			<content:encoded><![CDATA[<p>Sitemin doğrulandığını kontrol ederken karşıma aşağıdaki haliyle sitemin doğrulanmadığına dair mesajlar geldi.</p>
<p>Validation Output:  7 Errors1. Error Line 502, Column 96: document type does not allow element &#8220;script&#8221; here.…ics.com/ga.js‘ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );?</p>
<p>The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — such as a “style” element in the “body” section instead of inside “head” — or two elements that overlap (which is not allowed).</p>
<p>One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).</p>
<p>2. Warning Line 502, Column 98: character “&lt;” is the first character of a delimiter but occurred as data.</p>
<p>…s.com/ga.js‘ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );</p>
<p>?</p>
<p>This message may appear in several cases:</p>
<p>* You tried to include the “&lt;” character in your page: you should escape it as “&lt;”</p>
<p>* You used an unescaped ampersand “&amp;”: this may be valid in some contexts, but it is recommended to use “&amp;”, which is always safe.</p>
<p>* Another possibility is that you forgot to close quotes in a previous tag.</p>
<p>3. Error Line 504, Column 30: document type does not allow element “script” here.</p>
<p>&lt;script type=”text/javascript”&gt;</p>
<p>?</p>
<p>The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — such as a “style” element in the “body” section instead of inside “head” — or two elements that overlap (which is not allowed).</p>
<p>One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).</p>
<p>4. Error Line 510, Column 6: end tag for “script” omitted, but OMITTAG NO was specified.</p>
<p>&lt;/body&gt;</p>
<p>?</p>
<p>You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/&gt;” instead of “&gt;”.</p>
<p>5. Info Line 499, Column 0: start tag was here.</p>
<p>&lt;script type=”text/javascript”&gt;</p>
<p>6. Error Line 502, Column &gt; 80: XML Parsing Error: StartTag: invalid element name.</p>
<p>…+ ” &lt;a href=”http://google-analytics.com/ga.js” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt;google-analytics.com/ga.js&lt;/a&gt;’ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );…</p>
<p>?</p>
<p>7. Error Line 510, Column 7: XML Parsing Error: Opening and ending tag mismatch: script line 499 and body.</p>
<p>&lt;/body&gt;</p>
<p>?</p>
<p>8. Error Line 511, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 27 and html.</p>
<p>&lt;/html&gt;</p>
<p>?</p>
<p>9. Error Line 511, Column 7: XML Parsing Error: Premature end of data in tag html line 2.</p>
<p>&lt;/html&gt;</p>
<p>Durumum hiçde iç açıcı değil :) Bu kadar hata çıkması google in javascripti hazırlarken w3.org un direk kullanılmasını yasaklamış olduğu (&lt;,&gt;,&amp;,’,”) işaretlerini kullanmasından kaynaklanıyor. Eğer bu tip işaretleri illede direk olarak kullanacaksak bu kısımları CDATA ile işarelemelisiniz.</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;&lt;a href=&#8221;https://ssl/” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; https://ssl&lt;/a&gt;.” : “&lt;a href=”http://www./” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; http://www.&lt;/a&gt;”);document.write(”\&lt;script src=’” + gaJsHost + “&lt;a href=”http://google-analytics.com/ga.js” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt;google-analytics.com/ga.js &lt;/a&gt;’ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );</p>
<p>&lt;/script&gt;</p>
<p>&lt;script type=”text/javascript”&gt;</p>
<p>var pageTracker = _gat._getTracker(”UA-241751-4¨&lt;wbr&gt;&lt;/wbr&gt;);</p>
<p>pageTracker._initData();</p>
<p>pageTracker._trackPageview();</p>
<p>&lt;/script&gt;</p>
<p>Yukarıdaki kodu aşağıdaki kod gibi değiştirirseniz bu sorundan hata mesajlarını almaktan kurtulabilirsiniz.</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;//&lt;![CDATA[var gaJsHost = (("https:" ==  document.location.protocol) ? "&lt;a href="https://ssl/” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt;https://ssl&lt;/a&gt;.” : “&lt;a href=”http://www./” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; http://www.&lt;/a&gt;”);</p>
<p>document.write(”\&lt;script src=’” + gaJsHost + “&lt;a href=”http://google-analytics.com/ga.js” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; google-analytics.com/ga.js&lt;/a&gt;’ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );</p>
<p>&lt;/script&gt;</p>
<p>&lt;script type=”text/javascript”&gt;</p>
<p>var pageTracker = _gat._getTracker(”UA-241751-4¨&lt;wbr&gt;&lt;/wbr&gt;);</p>
<p>pageTracker._initData();</p>
<p>pageTracker._trackPageview();</p>
<p>//]]&gt;</p>
<p>&lt;/script&gt;</p>
<p>Yalnız CDATA kullandığımızda bazı eski CDATA’yı desteklemeyen tarayıcılar bunu ekrana basabilirler. Bu durumda kodumuzun eski tarayıcılarda bile sorunsuz çalışabilmesi için birkaç düzenleme daha yapmalıyız.</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;&lt;!&#8211;/*&#8211;&gt;&lt;![CDATA[/*&gt;&lt;!--*/var gaJsHost = (("https:" == document.location.protocol) ? "&lt;a href="https://ssl/” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; https://ssl&lt;/a&gt;.” : ” &lt;a href=”http://www./” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt;http://www.&lt;/a&gt;”);</p>
<p>document.write(”\&lt;script src=’” + gaJsHost + “&lt;a href=”http://google-analytics.com/ga.js” onclick=”return top.js.OpenExtLink(window,event,this)” target=”_blank”&gt; google-analytics.com/ga.js&lt;/a&gt;’ type=’text/javascript’&gt;\&lt;\&lt;wbr&gt;&lt;/wbr&gt;/script&gt;” );</p>
<p>&lt;/script&gt;</p>
<p>&lt;script type=”text/javascript”&gt;</p>
<p>var pageTracker = _gat._getTracker(”UA-241751-4¨&lt;wbr&gt;&lt;/wbr&gt;);</p>
<p>pageTracker._initData();</p>
<p>pageTracker._trackPageview();</p>
<p>/*]]&gt;*/–&gt;</p>
<p>&lt;/script&gt;</p>
<p>Evet şimdi oldu artık hem eski tarayıcılarla uyumlu hemde w3c standartlarına uyumlu bir hale getirmiş olduk. Ek bilgi: Eğer sayfalarınızda ekrana (&lt;,&gt;,&amp;,’,”) işaretlerini basmak istiyorsak aşağıda hangi işaretin yerine ne yazılabileceğini belirttim.</p>
<p>&amp;lt; = &lt;<br />
&amp;gt; = &gt;<br />
&amp;amp; = &amp;<br />
&amp;apos; = ‘<br />
” = “</p>
<p>Ek bilgi 2: Javascript, CSS gidi kodlarınızı dışarıdan bir dosyadan çağırmak çok daha mantıklı olacaktır. Unutmamalıkı eğer bir javascript yada css dosyasını dışarıdan çağırıyorsak bu dosyalarımızı browserlar değişmedikleri sürece tekrar tekrar indirmezler.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.murattopcu.net/yeni-google-analytics-kodu-w3c-standartlarina-uymuyor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

