@@ 710-718 (lines=9) @@ | ||
707 | ||
708 | wp_send_json_success(); |
|
709 | } |
|
710 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) { |
|
711 | $module_slug = $_REQUEST['jitmModule']; |
|
712 | ||
713 | // User went to WordPress.com, track this |
|
714 | $this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION ); |
|
715 | $this->do_stats( 'server_side' ); |
|
716 | ||
717 | wp_send_json_success(); |
|
718 | } |
|
719 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
720 | $track = $_REQUEST['jitmModule']; |
|
721 | ||
@@ 719-727 (lines=9) @@ | ||
716 | ||
717 | wp_send_json_success(); |
|
718 | } |
|
719 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
720 | $track = $_REQUEST['jitmModule']; |
|
721 | ||
722 | // User is viewing JITM, track it. |
|
723 | $this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION ); |
|
724 | $this->do_stats( 'server_side' ); |
|
725 | ||
726 | wp_send_json_success(); |
|
727 | } |
|
728 | } |
|
729 | ||
730 | /** |