Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 67b1f43

Browse files
committed
Align code samples, fix typos
1 parent 8f7df0e commit 67b1f43

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,13 @@ To integrate User Metrics with your app, perform the following steps:
148148
//add this import
149149
#import net.hockeyapp.android.metrics.MetricsManager;
150150

151-
//add this to your main activity's onCreate()-callback
151+
// add this to your main activity's onCreate()-callback
152152
MetricsManager.register(this, getApplication());
153153

154-
//add this wherever you want to track a custom event
154+
// add this wherever you want to track a custom event
155155
MetricsManager.trackEvent("YOUR_EVENT_NAME");
156156

157-
//add this wherever you want to tracka custom event and attach properties or measurements to it.
158-
157+
// add this wherever you want to track a custom event and attach properties or measurements to it
159158
HashMap<String, String> properties = new HashMap<>();
160159
properties.put("Property1", "Value1");
161160
HashMap<String, Double> measurements = new HashMap<>();
@@ -165,14 +164,14 @@ MetricsManager.trackEvent("YOUR_EVENT_NAME", properties, measurements);
165164

166165
```
167166

168-
Make sure to replace `"YOUR_EVENT_NAME"` with a name for your custom event, e.g. `"Login Button Pressed"`.
167+
Make sure to replace `"YOUR_EVENT_NAME"` with a name for your custom event, e.g. `"Login Button Pressed"`.
169168

170169
**Limits**
171170

172171
* Accepted characters for tracking events are: [a-zA-Z0-9_. -]. If you use other than the accepted characters, your events will not show up in the HockeyApp web portal.
173172
* There is currently a limit of 300 unique event names per app per week.
174173
* There is NO limit on the number of times an event can happen.
175-
* It's possible to attach properties and/or measurements to a custom event. There is one limitation to attaching properties and measurements. They currently don't show up in the HockeyApp dashboard but you have to link your app to Application Insights to be able to query them. Please have a look at [our blogpost](https://www.hockeyapp.net/blog/2016/08/30/custom-events-public-preview.html) to find out how to do that.
174+
* Properties and measurements added to Custom Events are available in Application Insights Analytics as a preview. Please have a look at the [public announcement](https://www.hockeyapp.net/blog/2016/08/30/custom-events-public-preview.html) to find out more.
176175

177176
<a id="updatedistribution"></a>
178177
### 2.6 Add update distribution

0 commit comments

Comments
 (0)