summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.jetpack-jitm.php')
-rw-r--r--plugins/jetpack/class.jetpack-jitm.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/jetpack/class.jetpack-jitm.php b/plugins/jetpack/class.jetpack-jitm.php
index 282f6630..fbd3d7b3 100644
--- a/plugins/jetpack/class.jetpack-jitm.php
+++ b/plugins/jetpack/class.jetpack-jitm.php
@@ -247,7 +247,9 @@ class Jetpack_JITM {
array(
'user_id' => $user->ID,
'user_roles' => implode( ',', $user->roles ),
- )
+ ),
+ null,
+ 'wpcom'
);
// silently fail...might be helpful to track it?
@@ -280,8 +282,12 @@ class Jetpack_JITM {
continue;
}
+ JetpackTracking::record_user_event( 'jitm_view_client', array(
+ 'jitm_id' => $envelope->id,
+ ) );
+
$normalized_site_url = Jetpack::build_raw_urls( get_home_url() );
- $envelope->url = 'https://jetpack.com/redirect/?source=jitm-' . $envelope->id . '&site=' . $normalized_site_url;
+ $envelope->url = 'https://jetpack.com/redirect/?source=jitm-' . $envelope->id . '&site=' . $normalized_site_url . '&u=' . $user->ID;
$envelope->jitm_stats_url = Jetpack::build_stats_url( array( 'x_jetpack-jitm' => $envelope->id ) );
if ( $envelope->CTA->hook ) {