This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Analytics code

  • Creator
    Topic
  • #3649
    mrnicoo
    Participant

    Hi
    Strange thing happened.. When I places the analytics code on the configuration page at the theme option it appear at the bottom left on the start page… check out http://www.phnompenhnightlife.com

    Please advice!

    Niklas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #3667
    Jason Bobich
    Keymaster

    Hello Niklas,

    You’re putting you in your specific Google Analytics profile ID, but what you need to put in is the code snippet Google gives you to put in your site.

    It’ll look something like this:

    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-XXXXX-X']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script>

    The reason the theme is setup like this is because the theme is not limited to only Google Analytics. You can put in Analytics code from any service you want. If the theme accepted just the Google profile ID, then people would be limited to just Google.

    #3680
    mrnicoo
    Participant

    that did it! – thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.