@@ 685-693 (lines=9) @@ | ||
682 | ||
683 | wp_send_json_success(); |
|
684 | } |
|
685 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) { |
|
686 | $module_slug = $_REQUEST['jitmModule']; |
|
687 | ||
688 | // User went to WordPress.com, track this |
|
689 | $this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION ); |
|
690 | $this->do_stats( 'server_side' ); |
|
691 | ||
692 | wp_send_json_success(); |
|
693 | } |
|
694 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
695 | $track = $_REQUEST['jitmModule']; |
|
696 | ||
@@ 694-702 (lines=9) @@ | ||
691 | ||
692 | wp_send_json_success(); |
|
693 | } |
|
694 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
695 | $track = $_REQUEST['jitmModule']; |
|
696 | ||
697 | // User is viewing JITM, track it. |
|
698 | $this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION ); |
|
699 | $this->do_stats( 'server_side' ); |
|
700 | ||
701 | wp_send_json_success(); |
|
702 | } |
|
703 | } |
|
704 | ||
705 | /** |