private void processCustomDimensionParameters ( @ SuppressWarnings ( "rawtypes" ) GoogleAnalyticsRequest request , List < NameValuePair > postParms ) { Map < String , String > customDimParms = new HashMap < String , String > ( ) ; for ( String defaultCustomDimKey : defaultRequest . customDimentions ( ) . keySet ( ) ) { customDimParms . put ( defaultCustomDimKey , defaultRequest . customDimentions ( ) . get ( defaultCustomDimKey ) ) ; } @ SuppressWarnings ( "unchecked" ) Map < String , String > requestCustomDims = request . customDimentions ( ) ; for ( String requestCustomDimKey : requestCustomDims . keySet ( ) ) { customDimParms . put ( requestCustomDimKey , requestCustomDims . get ( requestCustomDimKey ) ) ; } for ( String key : customDimParms . keySet ( ) ) { postParms . add ( new BasicNameValuePair ( key , customDimParms . get ( key ) ) ) ; } }
Processes the custom dimensions and adds the values to list of parameters which would be posted to GA .