Skip to content

Commit 1bc5132

Browse files
committed
Updated to version 1.1
Added minified files
1 parent e8ae5a8 commit 1bc5132

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Amplitude-Javascript
66
2. On every page that uses analytics, paste the following Javascript code between the `<head>` and `</head>` tags:
77

88
<script type="text/javascript">
9-
(function(e,t){var r=e.amplitude||{};var a=t.createElement("script");a.type="text/javascript";
10-
a.async=true;a.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-1.0-min.js";
11-
var n=t.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);
12-
r._q=[];function i(e){r[e]=function(){r._q.push([e].concat(Array.prototype.slice.call(arguments,0)))}}
13-
var s=["init","logEvent","setUserId","setGlobalUserProperties","setVersionName"];
14-
for(var c=0;c<s.length;c++){i(s[c])}e.amplitude=r})(window,document);
9+
(function(h,a){var f=h.amplitude||{};var b=a.createElement("script");b.type="text/javascript";
10+
b.async=true;b.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-1.1-min.js";
11+
var g=a.getElementsByTagName("script")[0];g.parentNode.insertBefore(b,g);
12+
f._q=[];function e(i){f[i]=function(){f._q.push([i].concat(Array.prototype.slice.call(arguments,0)))}}
13+
var c=["init","logEvent","setUserId","setGlobalUserProperties","setVersionName","setDomain"];
14+
for(var d=0;d<c.length;d++){e(c[d])}h.amplitude=f})(window,document);
1515

1616
amplitude.init("YOUR_API_KEY_HERE");
1717
</script>

amplitude-1.0-min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

amplitude-1.0-snippet-min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)