Skip to content

Commit

Permalink
v2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
djih committed Apr 20, 2016
1 parent f8df14e commit f8008b8
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

### 2.12.0 (April 20, 2016)

* Add support for setting groups for users and events. See the [Readme](https://github.com/amplitude/Amplitude-Javascript#setting-groups) for more information.
* Add `logRevenueV2` and new `Revenue` class to support logging revenue events with properties, and revenue type. See [Readme](https://github.com/amplitude/Amplitude-Javascript#tracking-revenue) for more info.
* Add helper method to regenerate a new random deviceId. This can be used to anonymize a user after they log out. Note this is not recommended unless you know what are you doing. See [Readme](https://github.com/amplitude/Amplitude-Javascript#logging-out-and-anonymous-users) for more information.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This Readme will guide you through using Amplitude's Javascript SDK to track use
```html
<script type="text/javascript">
(function(e,t){var n=e.amplitude||{_q:[]};var r=t.createElement("script");r.type="text/javascript";
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js";
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.12.0-min.gz.js";
r.onload=function(){e.amplitude.runQueuedFunctions()};var s=t.getElementsByTagName("script")[0];
s.parentNode.insertBefore(r,s);function i(e,t){e.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
return this}}var o=function(){this._q=[];return this};var a=["add","append","clearAll","prepend","set","setOnce","unset"];
Expand Down Expand Up @@ -361,7 +361,7 @@ If you are using [RequireJS](http://requirejs.org/) to load your Javascript file
```html
<script src='scripts/require.js'></script> <!-- loading RequireJS -->
<script>
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js'], function(amplitude) {
require(['https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.12.0-min.gz.js'], function(amplitude) {
amplitude.init('YOUR_API_KEY_HERE'); // replace YOUR_API_KEY_HERE with your Amplitude api key.
window.amplitude = amplitude; // You can bind the amplitude object to window if you want to use it directly.
amplitude.logEvent('Clicked Link A');
Expand All @@ -375,7 +375,7 @@ You can also define the path in your RequireJS configuration like so:
<script>
requirejs.config({
paths: {
'amplitude': 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz'
'amplitude': 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.12.0-min.gz'
}
});
Expand Down
2 changes: 1 addition & 1 deletion amplitude-snippet.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(e,t){var n=e.amplitude||{_q:[]};var r=t.createElement("script");r.type="text/javascript";
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js";
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.12.0-min.gz.js";
r.onload=function(){e.amplitude.runQueuedFunctions()};var s=t.getElementsByTagName("script")[0];
s.parentNode.insertBefore(r,s);function i(e,t){e.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
return this}}var o=function(){this._q=[];return this};var a=["add","append","clearAll","prepend","set","setOnce","unset"];
Expand Down
2 changes: 1 addition & 1 deletion amplitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -4489,7 +4489,7 @@ module.exports = uuid;

}, {}],
17: [function(require, module, exports) {
module.exports = '2.11.0';
module.exports = '2.12.0';

}, {}],
18: [function(require, module, exports) {
Expand Down
2 changes: 1 addition & 1 deletion amplitude.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "src/index.js",
"repo": "amplitude/amplitude-javascript",
"description": "Javascript library for Amplitude Analytics",
"version": "2.11.0",
"version": "2.12.0",
"keywords": [
"analytics",
"amplitude"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "amplitude-js",
"author": "Amplitude <[email protected]>",
"version": "2.11.0",
"version": "2.12.0",
"license": "MIT",
"description": "Javascript library for Amplitude Analytics",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/amplitude-snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var as = document.createElement('script');
as.type = 'text/javascript';
as.async = true;
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.11.0-min.gz.js';
as.src = 'https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-2.12.0-min.gz.js';
as.onload = function() {window.amplitude.runQueuedFunctions();};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(as, s);
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = '2.11.0';
module.exports = '2.12.0';

0 comments on commit f8008b8

Please sign in to comment.