|
55 | 55 | var addToPhotoCount = function() { |
56 | 56 | var photoCount = parseInt(prompt('Input amount to increment photo count by', '2'), 10); |
57 | 57 | amplitude.identify(new amplitude.Identify().add('photoCount', photoCount)); |
58 | | - } |
| 58 | + }; |
59 | 59 | var clickOnLinkA = function() { |
60 | 60 | amplitude.logEvent('Clicked on link A', null, function() { window.location='https://www.google.com'; }); |
61 | 61 | }; |
62 | 62 | var setPhotoCount = function() { |
63 | 63 | var photoCount = parseInt(prompt('Input photo count to set', '2'), 10); |
64 | 64 | amplitude.identify(new amplitude.Identify().set('photoCount', photoCount)); |
65 | | - } |
| 65 | + }; |
66 | 66 | var setOncePhotoCount = function() { |
67 | 67 | var photoCount = parseInt(prompt('Input photo count to setOnce', '2'), 10); |
68 | 68 | amplitude.identify(new amplitude.Identify().setOnce('photoCount', photoCount)); |
69 | | - } |
| 69 | + }; |
70 | 70 | </script> |
71 | 71 | <script> |
72 | 72 | amplitude.init('a2dbce0e18dfe5f8e74493843ff5c053', null, {includeReferrer: true}, function() { |
@@ -95,6 +95,7 @@ <h3>Amplitude JS Test</h3> |
95 | 95 | <li><a href="javascript:setPhotoCount();">Set photo count</a></li> |
96 | 96 | <li><a href="javascript:setOncePhotoCount();">Set photo count once</a></li> |
97 | 97 | <li><a href="javascript:setCity();">Set city via setUserProperties</a></li> |
| 98 | + <li><a href="javascript:amplitude.clearUserProperties();">Clear all user properties</a></li> |
98 | 99 | <br><br> |
99 | 100 | <li><a href="/test/browser/amplitudejs2.html">Go to second page</a></li> |
100 | 101 | </body> |
|
0 commit comments