Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@cnbritain/merlin-frontend-gatracker-js
Advanced tools
Google analytics wrapper
Kind: global class
Array
Object
Object
String
String
Number
RegExp
Object
Object
String
String
Param | Type | Description |
---|---|---|
id | String | The GA unique id |
_config | Object |
Fires a ga send call
Kind: instance method of GATracker
Access: public
Param | Type | Description |
---|---|---|
hitType | String | |
config | Object | Data to send along with the call |
Fires a ga set call to set information
Kind: instance method of GATracker
Access: public
Param | Type | Description |
---|---|---|
fieldName | String/Object | Either a key or an object with data |
value | String/Number |
Array
List of trackers that have been created
Kind: static property of GATracker
Object
Lookup table of dimension index by dimension label
Kind: static property of GATracker
Object
Lookup table of dimension labels by dimension index
Kind: static property of GATracker
String
The GA tracking id of the site. This will be updated in the page template.
Kind: static property of GATracker
String
The GA tracking id for CondeNast
Kind: static property of GATracker
Number
Comscore id
Kind: static property of GATracker
RegExp
RegEx for brand site This isn't set because each brand should specify in the core
Kind: static property of GATracker
Object
List of referrer types
Kind: static constant of GATracker
Object
List of ga send hit types
Kind: static constant of GATracker
Calls send on all the trackers
Kind: static method of GATracker
Param | Type |
---|---|
hitType | String |
config | Object |
Calls set on all the trackers
Kind: static method of GATracker
Param | Type |
---|---|
fieldName | String/Object |
value | String/Number |
String
Gets the dimension label by dimension index
Kind: static method of GATracker
Returns: String
- The dimension label
Param | Type |
---|---|
index | String |
String
Gets the dimension index by dimension label
Kind: static method of GATracker
Returns: String
- The dimension index
Param | Type |
---|---|
dimension | String |
Install dependencies:
npm install
Build the things:
npm run sass
npm run js
npm run docs
Hint your JS
npm run jshint
Python the pythons:
npm run demo-install
Start the demo server:
python demo.py
FAQs
Google analytics wrapper
We found that @cnbritain/merlin-frontend-gatracker-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.