' . __( 'Help improve Google Analytics for WordPress', 'gawp' ) . ''; $content .= '

' . __( 'You\'ve just installed Google Analytics for WordPress by Yoast. Please helps us improve it by allowing us to gather anonymous usage stats so we know which configurations, plugins and themes to test with.', 'gawp' ) . '

'; $opt_arr = array( 'content' => $content, 'position' => array( 'edge' => 'top', 'align' => 'center' ) ); $button2 = __( 'Allow tracking', 'gawp' ); $nonce = wp_create_nonce( 'wpga_activate_presstrends' ); $function2 = 'document.location="' . admin_url( 'options-general.php?page=google-analytics-for-wordpress&allow_tracking=yes&nonce=' . $nonce ) . '";'; $function1 = 'document.location="' . admin_url( 'options-general.php?page=google-analytics-for-wordpress&allow_tracking=no&nonce=' . $nonce ) . '";'; $this->print_scripts( $id, $opt_arr, __( 'Do not allow tracking', 'gawp' ), $button2, $function2, $function1 ); } /** * Load a tiny bit of CSS in the head */ function admin_head() { ?>