Support » Plugin: MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy) » Can't use with Google Analytics Content Experiments (_setDomainName = "none")

  • In Google Analytics Content Experiments, when attempting to validate the experiment code, I receive an error:

    “Experiment code missing the cookie domain name declared in tracking code: line:299, column:30.”

    This is the page I want to experiment on, and this is the tracking code inserted by Google Analytics by Yoast:

    <script type="text/javascript">
    		var _gaq = _gaq || [];
    		_gaq.push(['_setAccount', 'UA-44745039-16']);
    		_gaq.push(['_setDomainName', 'none']);
    		_gaq.push(['_setAllowLinker', true]);
    		_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>

    Note the value for _setDomainName: “none”.

    Why is this value set to none?

    https://wordpress.org/plugins/google-analytics-for-wordpress/

  • The topic ‘Can't use with Google Analytics Content Experiments (_setDomainName = "none")’ is closed to new replies.