• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

GA Demographics and Interest Reports

Dakis

Well-known member
#5
This is kind of important, until it's implemented in xenforo's code (if it's implemented), isn't there a way we can do it manually?

Edit: what if we just change the google_analytics template to reflect this change?

Code:
<xen:if is="{$xenOptions.googleAnalyticsWebPropertyId}"><script>

    var _gaq = [['_setAccount', '{$xenOptions.googleAnalyticsWebPropertyId}'], ['_trackPageview']];
    !function(d, t)
    {
        var g = d.createElement(t),
            s = d.getElementsByTagName(t)[0];   
        g.async = true;
        g.src = ('https:' == d.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        s.parentNode.insertBefore(g, s);
    }
    (document, 'script');

    </script><xen:comment><!--Adapted from http://mathiasbynens.be/notes/async-analytics-snippet--></xen:comment></xen:if>
 
Last edited: