- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
// this tells us which version of events we're using
$(document).trigger('demo_events_version', {
version: 1
,description: ''
});
// trigger email sign-up event so analytics can hook into it
$(document).trigger('demo_email', {
email: email
,is_offer: false // set to true if the email field says "sign up for offers" or something like that
});
// this will trigger the demo_language event for analytics purposes
$(document).trigger('demo_language', {
language: FULL_LANGUAGE_NAME_LIKE_SPANISH
,lang_code: LANGUAGE_CODE_LIKE_ESP
});
// trigger demo_start event so analytics can hook into it
$(document).trigger('demo_start', {
version: 'm1'
,version_description: 'mobile_demo_2015'
,start_time: new Date()
});
// what milestone has the user reached
$(document).trigger('demo_milestone', {
milestone: 'Welcome' // Welcome, Select Language, Interactive, Method, Speech, Tutors, Outro
});
// demo percent completion
$(document).trigger('demo_percent_completion', {
percent: 25 // integer 0-100
});