WordPress.org

Forums

Google Analytics by Yoast
[Plugin: Google Analytics for WordPress] customcode before trackPageview? (1 post)

  1. Ben Huson
    Member
    Posted 3 years ago #

    I need to track to multiple accounts. The examples I have found say to do that like this:

    _gaq.push(['_setAccount','UA-XXXXXX-1']);
    _gaq.push(['_trackPageview']);
    _gaq.push(['b._setAccount','UA-XXXXXX-2']);
    _gaq.push(['b._trackPageview']);

    I can input the second bit of tracking code in the 'customcode' field but it then outputs it in this order:

    _gaq.push(['_setAccount','UA-XXXXXX-1']);
    _gaq.push(['b._setAccount','UA-XXXXXX-2']);
    _gaq.push(['b._trackPageview']);
    _gaq.push(['_trackPageview']);

    Does anyone know wether this works or wether it would cause any issues?

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic