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