Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kangelone

    (@kangelone)

    I think I need to update this code:
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ‘UA-36713432-1’]);
    _gaq.push([‘_trackPageview’]);
    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘https://www’) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>

    To something like:
    ga.src = <?php
    if ( $this->options[‘gajslocalhosting’] && !empty( $this->options[‘gajsurl’] ) ) {
    echo “‘” . $this->options[‘gajsurl’] . “‘;”;
    } else {
    $script = ‘dc.js’;
    if ( current_user_can( ‘manage_options’ ) && $this->options[‘debug’] )
    $script = ‘u/ga_debug.js’;
    echo “(‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘https://www&#8217;) + ‘stats.g.doubleclick.net/” . $script . “‘”;
    }
    ?>;

    2 things; 1) not sure where to find code on site to start with and 2) not sure what changes to make to code (i suspect it’s not simply replacing)

Viewing 1 replies (of 1 total)