|
87 | 87 | } |
88 | 88 | </script> |
89 | 89 | <script> |
90 | | - amplitude.init('a2dbce0e18dfe5f8e74493843ff5c053', null, {includeReferrer: true, includeUtm: true, includeGclid: true, deviceId: 'dcdf0a79-8676-5cc3-95fc-fa53517293ad'}, function() { |
| 90 | + amplitude.init('a2dbce0e18dfe5f8e74493843ff5c053', null, {includeReferrer: true, includeUtm: true, includeGclid: true}, function() { |
91 | 91 | alert(amplitude.options.deviceId); |
92 | 92 | }); |
93 | | - // amplitude.setVersionName('Web'); |
94 | | - // amplitude.identify(new amplitude.Identify().add('photoCount', 1)); |
95 | | - // amplitude.identify(new amplitude.Identify().add('photoCount', 1).set('gender', 'male').unset('karma')); |
96 | | - // amplitude.logEvent('pageLoad'); |
| 93 | + amplitude.setVersionName('Web'); |
| 94 | + amplitude.identify(new amplitude.Identify().add('photoCount', 1)); |
| 95 | + amplitude.identify(new amplitude.Identify().add('photoCount', 1).set('gender', 'male').unset('karma')); |
| 96 | + amplitude.logEvent('pageLoad'); |
97 | 97 |
|
98 | | - // amplitude.getInstance('app2').logEvent('log event before init'); |
99 | | - // amplitude.getInstance('app2').init('1d2fe1e104eb3f07a24e94d359f70fd5', 'checkers@gmail.com', {includeReferrer: true}, function(instance) { |
100 | | - // alert(instance.options.deviceId); |
101 | | - // }); |
102 | | - // amplitude.getInstance('app2').identify(new amplitude.Identify().set('key', 'value')); |
103 | | - // amplitude.getInstance('app2').logEvent('app 2 page load'); |
| 98 | + amplitude.getInstance('app2').logEvent('log event before init'); |
| 99 | + amplitude.getInstance('app2').init('1d2fe1e104eb3f07a24e94d359f70fd5', 'checkers@gmail.com', {includeReferrer: true}, function(instance) { |
| 100 | + alert(instance.options.deviceId); |
| 101 | + }); |
| 102 | + amplitude.getInstance('app2').identify(new amplitude.Identify().set('key', 'value')); |
| 103 | + amplitude.getInstance('app2').logEvent('app 2 page load'); |
104 | 104 |
|
105 | | - // amplitude.getInstance('app3').init('a2dbce0e18dfe5f8e74493843ff5c053', null, {batchEvents: true, eventUploadThreshold: 2}); |
106 | | - // amplitude.getInstance('app3').logEvent('app3 page Load'); |
| 105 | + amplitude.getInstance('app3').init('a2dbce0e18dfe5f8e74493843ff5c053', null, {batchEvents: true, eventUploadThreshold: 2}); |
| 106 | + amplitude.getInstance('app3').logEvent('app3 page Load'); |
107 | 107 |
|
108 | | - // amplitude.getInstance('app4').init('1d2fe1e104eb3f07a24e94d359f70fd5', 'joe@gmail.com'); |
109 | | - // amplitude.getInstance('app4').logEvent('app 4 page load'); |
| 108 | + amplitude.getInstance('app4').init('1d2fe1e104eb3f07a24e94d359f70fd5', 'joe@gmail.com'); |
| 109 | + amplitude.getInstance('app4').logEvent('app 4 page load'); |
110 | 110 | </script> |
111 | 111 | <body> |
112 | 112 | <h3>Amplitude JS Test</h3> |
|
0 commit comments