1. 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

Discussion in 'XenForo Suggestions' started by Jeffin, Oct 30, 2013.

  1. Jeffin

    Jeffin Well-Known Member

    Moddis, tajhay, Dakis and 1 other person like this.
  2. OldCoals

    OldCoals Active Member

    How would I edit the code to enable this?
  3. Carlos Oporto

    Carlos Oporto New Member

    I would like this too. Apparently Xenforo doesn't do this by default. Also there is an add-on for better analytics and tracking the social button interactions on the site.
  4. Marcus

    Marcus Well-Known Member

  5. Dakis

    Dakis Well-Known Member

    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?

    <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: Nov 23, 2013
  6. OldCoals

    OldCoals Active Member

    Would this work, I am no coder so I don't want to go hacking around. :D
  7. Dakis

    Dakis Well-Known Member

Share This Page