WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics by Yoast
Plugin code differs from analytics code (1 post)

  1. mmtomm
    Member
    Posted 1 year ago #

    Hi,

    I started to use the plugin and found, that the tracking code differs from the one which is displayed in my source code.
    Here the google analytics original:

    var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-12345678-9']);
      _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);
      })();

    and here the one from my site created form the plugin:

    var _gaq = _gaq || [];
    			_gaq.push(['_setAccount', 'UA-12345678-9']);
    							_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);
    			})();
    			//]]

    Does anyone know, what will be the differenc between doubleclick.net JS and google JS? Should I pay attention to it?

    Thank you
    Tom

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.