save_google_analytics_tweak

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "save_google_analytics_tweak".
... in analytics.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<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>
Overrides default macro
... in use_google_analytics.naml
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<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="js_google_analytics">
                    <n.overridden/>
                    <script>
                        ga('create', ']]><n.google_analytics_code_field.value/><![CDATA[', 'auto');
                        ga('send', 'pageview');
                    </script>
                </override_macro>
                ]]>
            </naml>
        </n.set>
        <n.apply/>
    </n.naml_configuration.>
</macro>