Skip to content

Commit a23cdcf

Browse files
committed
add links for testing to browser page
1 parent fcec3f9 commit a23cdcf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/browser/amplitudejs.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@
5555
var addToPhotoCount = function() {
5656
var photoCount = parseInt(prompt('Input amount to increment photo count by', '2'), 10);
5757
amplitude.identify(new amplitude.Identify().add('photoCount', photoCount));
58-
}
58+
};
5959
var clickOnLinkA = function() {
6060
amplitude.logEvent('Clicked on link A', null, function() { window.location='https://www.google.com'; });
6161
};
6262
var setPhotoCount = function() {
6363
var photoCount = parseInt(prompt('Input photo count to set', '2'), 10);
6464
amplitude.identify(new amplitude.Identify().set('photoCount', photoCount));
65-
}
65+
};
6666
var setOncePhotoCount = function() {
6767
var photoCount = parseInt(prompt('Input photo count to setOnce', '2'), 10);
6868
amplitude.identify(new amplitude.Identify().setOnce('photoCount', photoCount));
69-
}
69+
};
7070
</script>
7171
<script>
7272
amplitude.init('a2dbce0e18dfe5f8e74493843ff5c053', null, {includeReferrer: true}, function() {
@@ -95,6 +95,7 @@ <h3>Amplitude JS Test</h3>
9595
<li><a href="javascript:setPhotoCount();">Set photo count</a></li>
9696
<li><a href="javascript:setOncePhotoCount();">Set photo count once</a></li>
9797
<li><a href="javascript:setCity();">Set city via setUserProperties</a></li>
98+
<li><a href="javascript:amplitude.clearUserProperties();">Clear all user properties</a></li>
9899
<br><br>
99100
<li><a href="/test/browser/amplitudejs2.html">Go to second page</a></li>
100101
</body>

test/browser/amplitudejs2.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ <h3>Amplitude JS Test</h3>
9595
<li><a href="javascript:setPhotoCount();">Set photo count</a></li>
9696
<li><a href="javascript:setOncePhotoCount();">Set photo count once</a></li>
9797
<li><a href="javascript:setCity();">Set city via setUserProperties</a></li>
98+
<li><a href="javascript:amplitude.clearUserProperties();">Clear all user properties</a></li>
9899
<br><br>
99100
<li><a href="/test/browser/amplitudejs.html">Go to first page</a></li>
100101
</body>

0 commit comments

Comments
 (0)