You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The default status code sent to CrowdHandler is '200'. However, if a different status code needs to be sent,
89
+
* it can be achieved by passing it as a parameter to the 'recordPerformance' method.
90
+
*
91
+
* Example:
92
+
* chGatekeeper.recordPerformance({status: 404});
93
+
*
94
+
* If you are using CrowdHandler's autotune feature, is is crucial to pass accurate status codes to CrowdHandler to ensure the precision of analytics and autotune results.
* The default status code sent to CrowdHandler is '200'. However, if a different status code needs to be sent,
65
+
* it can be achieved by passing it as a parameter to the 'recordPerformance' method.
66
+
*
67
+
* Example:
68
+
* chGatekeeper.recordPerformance({status: 404});
69
+
*
70
+
* If you are using CrowdHandler's autotune feature, is is crucial to pass accurate status codes to CrowdHandler to ensure the precision of analytics and autotune results.
//to redirect or to not redirect, that is the question
45
+
if(!chStatus.promoted){
46
+
returnchGatekeeper.redirectIfNotPromoted();
47
+
}
48
+
49
+
/* Think carefull about where you include this.
50
+
*
51
+
*The intention is to inform CrowdHandler of the performance of the page
52
+
*For example, in a single page application, you should defer this call until all critical components of the page have finished loading and the page is ready to be used.
53
+
*/
54
+
chGatekeeper.recordPerformance();
55
+
56
+
/*
57
+
* IMPORTANT CONSIDERATION:
58
+
*
59
+
* The default status code sent to CrowdHandler is '200'. However, if a different status code needs to be sent,
60
+
* it can be achieved by passing it as a parameter to the 'recordPerformance' method.
61
+
*
62
+
* Example:
63
+
* chGatekeeper.recordPerformance({status: 404});
64
+
*
65
+
* If you are using CrowdHandler's autotune feature, is is crucial to pass accurate status codes to CrowdHandler to ensure the precision of analytics and autotune results.
66
+
*/
67
+
}
68
+
69
+
crowdhandler_gatekeeper();
70
+
},[location]);
71
+
72
+
returnnull;// this component doesn't render anything
0 commit comments