<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: google analytics code in child theme?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 18:42:40 +0000</pubDate>

<item>
<title>Caramboo on "google analytics code in child theme?"</title>
<link>http://themeshaper.com/forums/topic/google-analytics-code-in-child-theme#post-10440</link>
<pubDate>Thu, 04 Mar 2010 18:06:49 +0000</pubDate>
<dc:creator>Caramboo</dc:creator>
<guid isPermaLink="false">10440@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Put this in your functions.php file:&#60;/p&#62;
&#60;pre&#62;
function analytic_footer() {?&#38;gt;
&#38;lt;script src=&#34;http://www.google-analytics.com/urchin.js&#34; type=&#34;text/javascript&#34;&#38;gt;
&#38;lt;/script&#38;gt;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;
_uacct = &#34;UA-1234567-2&#34;;
urchinTracker();
&#38;lt;/script&#38;gt;
&#38;lt;? }
add_filter ('thematic_after', 'analytic_footer');
&#60;/pre&#62;
&#60;p&#62;Obviously replace the 1234567...
&#60;/p&#62;</description>
</item>
<item>
<title>Seijun on "google analytics code in child theme?"</title>
<link>http://themeshaper.com/forums/topic/google-analytics-code-in-child-theme#post-10429</link>
<pubDate>Thu, 04 Mar 2010 04:53:25 +0000</pubDate>
<dc:creator>Seijun</dc:creator>
<guid isPermaLink="false">10429@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've just been using the &#34;google analytics for wordpress&#34; plugin, which does this automatically..
&#60;/p&#62;</description>
</item>
<item>
<title>stevewynn on "google analytics code in child theme?"</title>
<link>http://themeshaper.com/forums/topic/google-analytics-code-in-child-theme#post-10393</link>
<pubDate>Wed, 03 Mar 2010 14:53:39 +0000</pubDate>
<dc:creator>stevewynn</dc:creator>
<guid isPermaLink="false">10393@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Sorry, Im quite new at this so please bear with me. Sorry if this is obvious, but i just want to make sure i am doing everything correctly.&#60;/p&#62;
&#60;p&#62;Im trying to add the google analytics code to my footer.php in my Thematic setup.&#60;/p&#62;
&#60;p&#62;I am using the child theme Earlymorning. As i understand I should inject the google analytics code in the child theme's footer.php.&#60;/p&#62;
&#60;p&#62;Is this correct?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;/div&#38;gt;&#38;lt;!-- #main --&#38;gt;

    &#38;lt;?php

    // action hook for placing content above the footer
    thematic_abovefooter();

    ?&#38;gt;    

	&#38;lt;div id=&#38;quot;footer&#38;quot;&#38;gt;

        &#38;lt;?php

        // action hook creating the footer
        thematic_footer();

        ?&#38;gt;

	&#38;lt;/div&#38;gt;&#38;lt;!-- #footer --&#38;gt;

    &#38;lt;?php

    // actio hook for placing content below the footer
    thematic_belowfooter();

    ?&#38;gt;  

&#38;lt;/div&#38;gt;&#38;lt;!-- #wrapper .hfeed --&#38;gt;

&#38;lt;?php 

// calling WordPress&#38;#39; footer action hook
wp_footer();

// action hook for placing content before closing the BODY tag
thematic_after(); 

?&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
var gaJsHost = ((&#38;quot;https:&#38;quot; == document.location.protocol) ? &#38;quot;https://ssl.&#38;quot; : &#38;quot;http://www.&#38;quot;);
document.write(unescape(&#38;quot;%3Cscript src=&#38;#39;&#38;quot; + gaJsHost + &#38;quot;google-analytics.com/ga.js&#38;#39; type=&#38;#39;text/javascript&#38;#39;%3E%3C/script%3E&#38;quot;));
&#38;lt;/script&#38;gt;
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
try {
var pageTracker = _gat._getTracker(&#38;quot;XXXXX&#38;quot;);
pageTracker._setDomainName(&#38;quot;.XXXXX&#38;quot;);
pageTracker._trackPageview();
} catch(err) {}&#38;lt;/script&#38;gt;
&#38;lt;/body&#38;gt;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
