From 77b296ae7c36b2f2d7f7da6e7f76361bcdb8438a Mon Sep 17 00:00:00 2001 From: Junyuan Qi Date: Thu, 31 Dec 2015 18:02:30 +0800 Subject: [PATCH] updated readme --- README.md | 1 + lib/index.js | 2 +- package.json | 4 +++- src/index.coffee | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ae8e48a..7bbd8bd 100644 --- a/README.md +++ b/README.md @@ -65,3 +65,4 @@ If `data-label` `data-action` `data-category` `data-value` is not provided then * [Mixpanel](https://mixpanel.com/help/reference/javascript) * [Piwik](http://developer.piwik.org/api-reference) * [Customer.io](https://customer.io/docs/api/javascript.html) +* [Fullstory](http://help.fullstory.com/using-ref/getting-started) diff --git a/lib/index.js b/lib/index.js index 84cd6db..e129582 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -(function(root, factory) { +;(function(root, factory) { 'use strict'; var gta; gta = factory(); diff --git a/package.json b/package.json index e67ce81..5828ca0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "google", "baidu", "mixpanel", - "analysis" + "analysis", + "customer.io", + "fullstory" ], "author": "teambition", "license": "MIT", diff --git a/src/index.coffee b/src/index.coffee index 8cf1e9c..8296657 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -356,13 +356,13 @@ checkScript(script) _fullstory.identify = (id, user) -> - _fullstory('user', {uid:id}) + _fullstory('user', {uid: id}) if user then _fullstory('user', user) _fullstory.setUserVars = (user) -> _fullstory('user', user) - _fullstory.identifyAccount = (id, user={}) -> + _fullstory.identifyAccount = (id, user = {}) -> user.acctId = id _fullstory('account', user)