We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of hardcoding the event name page viewed, allow this to be configurable via the ember-metrics configuration object.
page viewed
example implementation:
trackPage(options = {}) { const config = get(this, 'config'); let { trackPageEventName } = config; trackPageEventName = trackPageEventName || 'page viewed'; const event = { event: trackPageEventName }; const mergedOptions = assign(event, options); this.trackEvent(mergedOptions); },
The text was updated successfully, but these errors were encountered:
Thanks! Would you like to open a PR for it?
Sorry, something went wrong.
No branches or pull requests
Instead of hardcoding the event name
page viewed
, allow this to be configurable via the ember-metrics configuration object.example implementation:
The text was updated successfully, but these errors were encountered: