import { ANALYTICS_SITE_ID_DEV , ANALYTICS_SITE_ID_PROD } from '@config' ; import { IS_E2E , IS_PROD , IS_STAGING } from '@utils' ; export const makeID = ( ) => [ ... Array ( 22 ) ] . map ( ( ) => ( ~ ~ ( Math . random ( ) * 36 ) ) . toString ( 36 ) ) . join ( '' ) ; export const getSiteID = ( ) => { if ( IS_PROD && ! ( IS_STAGING || IS_E2E ) ) { return ANALYTICS_SITE_ID_PROD ; } else { return ANALYTICS_SITE_ID_DEV ; } } ;