analytics.naml

<override_macro name="save_google_analytics_tweak">
    <n.naml_configuration.>
        <n.set>
            <name>googleAnalyticsId</name>
            <value><n.google_analytics_code_field.value/></value>
            <default></default>
            <naml>
                <![CDATA[
                <override_macro name="nabble_shared_scripts">
                    <n.overridden/>
                    <script type="text/javascript">
                      var _gaq = _gaq || [];
                      _gaq.push(['_setAccount', ']]><n.google_analytics_code_field.value/><![CDATA[']);
                      _gaq.push(['_setDomainName', 'nyskiblog.com']);
                      _gaq.push(['_trackPageview']);

                      (function() {
                        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                        ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
                        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                      })();
                    </script>
                </override_macro>
                ]]>
            </naml>
        </n.set>
        <n.apply/>
    </n.naml_configuration.>
</override_macro>