Skip to content

Commit 3ba5a5c

Browse files
committed
Adjust for fix to getcustommetrics
1 parent 48cd377 commit 3ba5a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Plugins/GoogleAnalyticsV4/GAIHandler.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ public void _buildCustomDimensionsDictionary<T>(HitBuilder<T> builder){
195195
[DllImport("__Internal")]
196196
private static extern void addCustomMetricToDictionary(int key, string value);
197197
public void _buildCustomMetricsDictionary<T>(HitBuilder<T> builder){
198-
foreach(KeyValuePair<int, string> entry in builder.GetCustomMetrics())
198+
foreach(KeyValuePair<int, float> entry in builder.GetCustomMetrics())
199199
{
200-
addCustomMetricToDictionary(entry.Key, entry.Value);
200+
addCustomMetricToDictionary(entry.Key, entry.Value.ToString());
201201
}
202202
}
203203

0 commit comments

Comments
 (0)