@analytics/crazy-egg
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.2](https://github.com/DavidWells/analytics/compare/@analytics/crazy-egg@0.1.1...@analytics/crazy-egg@0.1.2) (2020-12-23) | ||
**Note:** Version bump only for package @analytics/crazy-egg | ||
## [0.1.1](https://github.com/DavidWells/analytics/compare/@analytics/crazy-egg@0.1.0...@analytics/crazy-egg@0.1.1) (2019-10-14) | ||
@@ -8,0 +16,0 @@ |
@@ -23,3 +23,3 @@ var analyticsCrazyEgg = (function () { | ||
return { | ||
NAMESPACE: 'crazy-egg', | ||
name: 'crazy-egg', | ||
config: pluginConfig, | ||
@@ -26,0 +26,0 @@ initialize: function initialize(_ref) { |
@@ -1,1 +0,1 @@ | ||
var analyticsCrazyEgg=function(){"use strict";return function(){return{NAMESPACE:"crazy-egg",config:0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},initialize:function(t){var e=t.config.accountNumber;if(!e)throw new Error("No crazy egg accountNumber defined");var c=document.location,n="https:"===c.protocol||"chrome-extension:"===c.protocol,o="".concat(e.slice(0,4),"/").concat(e.slice(4)),r=Math.floor((new Date).getTime()/36e5),a="".concat(n?"https:":"http:","//script.crazyegg.com/pages/scripts/").concat(o,".js?").concat(r),i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=a,setTimeout(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(i,t)},0)},loaded:function(){return!!window.CE2}}}}(); | ||
var analyticsCrazyEgg=function(){"use strict";return function(){return{name:"crazy-egg",config:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},initialize:function(t){var e=t.config.accountNumber;if(!e)throw new Error("No crazy egg accountNumber defined");var c=document.location,n="https:"===c.protocol||"chrome-extension:"===c.protocol,o="".concat(e.slice(0,4),"/").concat(e.slice(4)),r=Math.floor((new Date).getTime()/36e5),a="".concat(n?"https:":"http:","//script.crazyegg.com/pages/scripts/").concat(o,".js?").concat(r),i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=a,setTimeout(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(i,t)},0)},loaded:function(){return!!window.CE2}}}}(); |
@@ -22,3 +22,3 @@ 'use strict'; | ||
return { | ||
NAMESPACE: 'crazy-egg', | ||
name: 'crazy-egg', | ||
config: pluginConfig, | ||
@@ -25,0 +25,0 @@ initialize: function initialize(_ref) { |
@@ -20,3 +20,3 @@ /* global CE2 */ | ||
return { | ||
NAMESPACE: 'crazy-egg', | ||
name: 'crazy-egg', | ||
config: pluginConfig, | ||
@@ -23,0 +23,0 @@ initialize: function initialize(_ref) { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
return { | ||
NAMESPACE: 'crazy-egg', | ||
name: 'crazy-egg', | ||
initialize: function initialize(_ref) { | ||
@@ -8,0 +8,0 @@ var config = _ref.config; |
function crazyEgg(pluginConfig) { | ||
return { | ||
NAMESPACE: 'crazy-egg', | ||
name: 'crazy-egg', | ||
initialize: function initialize(_ref) { | ||
@@ -5,0 +5,0 @@ var config = _ref.config; |
{ | ||
"name": "@analytics/crazy-egg", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Crazy Egg integration for 'analytics' module", | ||
@@ -53,3 +53,3 @@ "projectMeta": { | ||
}, | ||
"gitHead": "159c0f42b5af886af963a0a65e1f5c3c33f023f2" | ||
"gitHead": "88f4993042855499452fa01e5132023979f4b227" | ||
} |
@@ -21,5 +21,6 @@ <!-- | ||
- [How to use](#how-to-use) | ||
- [Platforms Supported](#platforms-supported) | ||
- [Browser usage](#browser-usage) | ||
* [Browser API](#browser-api) | ||
- [Platforms Supported](#platforms-supported) | ||
* [Configuration options for browser](#configuration-options-for-browser) | ||
- [Additional examples](#additional-examples) | ||
@@ -66,2 +67,6 @@ - [Usage](#usage) | ||
## Platforms Supported | ||
The `@analytics/crazy-egg` package works in [the browser](#browser-usage) | ||
## Browser usage | ||
@@ -74,2 +79,5 @@ | ||
```js | ||
import Analytics from 'analytics' | ||
import exports from '@analytics/crazy-egg' | ||
const analytics = Analytics({ | ||
@@ -87,12 +95,9 @@ app: 'awesome-app', | ||
**Initialization arguments** | ||
### Configuration options for browser | ||
- **pluginConfig** `object` Plugin settings | ||
- **pluginConfig.accountNumber** `string` crazy egg account ID | ||
| Option | description | | ||
|:---------------------------|:-----------| | ||
| `accountNumber` <br/>**required** - string| crazy egg account ID | | ||
## Platforms Supported | ||
The `@analytics/crazy-egg` package works in [the browser](#browser-usage) | ||
## Additional examples | ||
@@ -99,0 +104,0 @@ |
16807
10
203