Skip to content
New issue

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

Some fixes #1

Merged
merged 3 commits into from
Mar 3, 2017
Merged

Some fixes #1

merged 3 commits into from
Mar 3, 2017

Conversation

omenocal
Copy link
Contributor

@omenocal omenocal commented Mar 3, 2017

No description provided.

(result) => {
debug(`recordAnalytics (state: ${transition.to}); result: ${result}`);
resolve();
});
}));

skill.onSessionEnded((alexaEvent) => {
OpearloAnalytics.registerVoiceEvent(alexaEvent.session.user.userId, 'die', 'SessionEndedRequest');
alexaEvent.opearloRegistered = true;
OpearloAnalytics.registerVoiceEvent(alexaEvent.session.user.userId, 'SessionEndedRequest', 'die');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no SessionEndedRequest event type according to https://analytics.opearlo.com/setup-analytics/node/alexa-sdk

@@ -26,27 +26,25 @@ function register(skill, config) {
skill.onAfterStateChanged((alexaEvent, reply, transition) => {
OpearloAnalytics.registerVoiceEvent(
alexaEvent.session.user.userId,
transition.to,
'Custom',
alexaEvent.intent.name,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the custom even type should probably be stateTransition or something. Also, not sure if we should be tracking the intent.params for state transition events

OpearloAnalytics.registerVoiceEvent(
alexaEvent.session.user.userId,
transition.to,
'IntentRequest',
alexaEvent.intent.name,
alexaEvent.intent.params);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you look at the documentation the third parameter is the intent object, not the intent name

OpearloAnalytics.registerVoiceEvent(event.session.user.userId, "IntentRequest", event.request.intent);

@armonge armonge merged commit 2ec8c34 into master Mar 3, 2017
@armonge armonge deleted the dev branch March 3, 2017 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants