Skip to content

Commit a8903b4

Browse files
committed
v2.11.0
1 parent 96d7add commit a8903b4

File tree

9 files changed

+12
-10
lines changed

9 files changed

+12
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Unreleased
22

3+
### 2.11.0 (April 14, 2016)
4+
35
* Add tracking of each user's initial_utm parameters (which is captured as a set once operation). Utm parameters are now sent only once per user session.
46
* Add documentation for SDK functions. You can take a look [here](https://rawgit.com/amplitude/Amplitude-Javascript/defensive_cleanup/documentation/Amplitude.html). A link has also been added to the Readme.
57
* Fix cookie test bug. In rare cases, the cookie test failed to delete the key used in testing. Reloading the page generated new keys, filling up the cookie over time. Fixed test to re-use the same key.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This Readme will guide you through using Amplitude's Javascript SDK to track use
1212
```html
1313
<script type="text/javascript">
1414
(function(e,t){var n=e.amplitude||{_q:[]};var r=t.createElement("script");r.type="text/javascript";
15-
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.10.0-min.gz.js";
15+
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js";
1616
r.onload=function(){e.amplitude.runQueuedFunctions()};var i=t.getElementsByTagName("script")[0];
1717
i.parentNode.insertBefore(r,i);var s=function(){this._q=[];return this};function o(e){
1818
s.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0)));
@@ -320,7 +320,7 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
320320
```html
321321
<script src='scripts/require.js'></script> <!-- loading RequireJS -->
322322
<script>
323-
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.10.0-min.gz.js'], function(amplitude) {
323+
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js'], function(amplitude) {
324324
amplitude.init('YOUR_API_KEY_HERE'); // replace YOUR_API_KEY_HERE with your Amplitude api key.
325325
window.amplitude = amplitude; // You can bind the amplitude object to window if you want to use it directly.
326326
amplitude.logEvent('Clicked Link A');
@@ -334,7 +334,7 @@ You can also define the path in your RequireJS configuration like so:
334334
<script>
335335
requirejs.config({
336336
paths: {
337-
'amplitude': 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.10.0-min.gz'
337+
'amplitude': 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz'
338338
}
339339
});
340340

amplitude-snippet.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function(e,t){var n=e.amplitude||{_q:[]};var r=t.createElement("script");r.type="text/javascript";
2-
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.10.0-min.gz.js";
2+
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js";
33
r.onload=function(){e.amplitude.runQueuedFunctions()};var i=t.getElementsByTagName("script")[0];
44
i.parentNode.insertBefore(r,i);var s=function(){this._q=[];return this};function o(e){
55
s.prototype[e]=function(){this._q.push([e].concat(Array.prototype.slice.call(arguments,0)));

amplitude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4145,7 +4145,7 @@ module.exports = uuid;
41454145

41464146
}, {}],
41474147
16: [function(require, module, exports) {
4148-
module.exports = '2.10.0';
4148+
module.exports = '2.11.0';
41494149

41504150
}, {}],
41514151
17: [function(require, module, exports) {

amplitude.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "src/index.js",
44
"repo": "amplitude/amplitude-javascript",
55
"description": "Javascript library for Amplitude Analytics",
6-
"version": "2.10.0",
6+
"version": "2.11.0",
77
"keywords": [
88
"analytics",
99
"amplitude"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "amplitude-js",
33
"author": "Amplitude <[email protected]>",
4-
"version": "2.10.0",
4+
"version": "2.11.0",
55
"license": "MIT",
66
"description": "Javascript library for Amplitude Analytics",
77
"keywords": [

src/amplitude-snippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var as = document.createElement('script');
44
as.type = 'text/javascript';
55
as.async = true;
6-
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.10.0-min.gz.js';
6+
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js';
77
as.onload = function() {window.amplitude.runQueuedFunctions();};
88
var s = document.getElementsByTagName('script')[0];
99
s.parentNode.insertBefore(as, s);

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = '2.10.0';
1+
module.exports = '2.11.0';

0 commit comments

Comments
 (0)