// src/index.js
const renderApp = async () => {
// ...
const excludePaths = ['/callback/auth-callback'];
if (!excludePaths.includes(location.pathname)) {
const searchParams = new URLSearchParams(location.search);
const trackingKey = searchParams.get('trackingKey');
const channelType = searchParams.get('channelType');
setTrackingKey(trackingKey);
setChannelType(channelType);
//...
}
}