Skip to content

Google Analytics requires integer timing #8

Description

@ejdaly

My timing events were not showing up on GA.

Forcing appmetrics to send integer values for time (ms) fixed this for me
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#timingValue

A Math.round() in sendToAnalytics() will fix this in general:
ga('send', 'timing', category, metric, Math.round(duration));

Activity

  1. ebidel commented on May 30, 2017

    @ebidel
    Owner

    Huh. I haven't run into this myself but we should definitely follow the docs.
    Interested in a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions