-
Notifications
You must be signed in to change notification settings - Fork 0
/
second_page.html
24 lines (19 loc) · 1.47 KB
/
second_page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<title>Example Web Page</title>
<!--Segment Snippet -->
<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0";
analytics.load("Jh0VIwuU2f2kNGWROwpzmn0o1nAgn2Cf");
analytics.page();
}}();
</script>
</head>
<body>
<h1>A Test Web Page</h1>
<p>This page has the segment Snippet in the header - you can call segment analytics.js from the console</p>
<!-- button to launch the consent manager -->
<button type="button" onclick="window.location.href='https://yannzo.github.io/index.html';">Back</button>
</body>
</html>