@@ 838-846 (lines=9) @@ | ||
835 | ||
836 | wp_send_json_success(); |
|
837 | } |
|
838 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) { |
|
839 | $module_slug = $_REQUEST['jitmModule']; |
|
840 | ||
841 | // User went to WordPress.com, track this |
|
842 | $this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION ); |
|
843 | $this->do_stats( 'server_side' ); |
|
844 | ||
845 | wp_send_json_success(); |
|
846 | } |
|
847 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
848 | $track = $_REQUEST['jitmModule']; |
|
849 | ||
@@ 847-855 (lines=9) @@ | ||
844 | ||
845 | wp_send_json_success(); |
|
846 | } |
|
847 | if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) { |
|
848 | $track = $_REQUEST['jitmModule']; |
|
849 | ||
850 | // User is viewing JITM, track it. |
|
851 | $this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION ); |
|
852 | $this->do_stats( 'server_side' ); |
|
853 | ||
854 | wp_send_json_success(); |
|
855 | } |
|
856 | } |
|
857 | ||
858 | /** |