You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because you don't want to use 3rd party packages, you can use window.postMessage to send a message to the main page (and thus some JS) for these events. You'll need a snippet of JS running in the main page to listen to events and set the tracking code appropriately.
It would be interesting to know how much people are using the app.
Some ideas:
* Successful compiles
You can track arbitrary events using Google Analytics. Here is an example:
<a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby's First Birthday']);">Play</a>
So, you'll need to execute some JavaScript from your Dart code.
Here are the full docs: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
_trackEvent(category, action, opt_label, opt_value, opt_noninteraction)
category (required)
The name you supply for the group of objects you want to track.
action (required)
A string that is uniquely paired with each category, and commonly used to define the type of user interaction for the web object.
label (optional)
An optional string to provide additional dimensions to the event data.
value (optional)
An integer that you can use to provide numerical data about the user event.
non-interaction (optional)
A boolean that when set to true, indicates that the event hit will not be used in bounce-rate calculation.
Here's a suggestion:
category: usage
action: compile_yes
category: usage
action: compile_no
Another example would be to track compile times.
category: metrics
action: compile_time
label: <num lines of code, in course-grained increments like 1-20, 21-40, etc>
value: milliseconds
The text was updated successfully, but these errors were encountered: