|
Download wp-calypso/client/lib/analytics/docs/mc.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/analytics/docs/mc.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/analytics/docs/mc.md
-
curl -L -o mc.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/wp-calypso/client/lib/analytics/docs/mc.md
461 Bytes
| # Analytics: MC | |
| Automatticians may refer to internal documentation for more information about MC. | |
| ## Usage | |
| ### `bumpStat( group, name )` | |
| Bump a single WP.com stat: | |
| ```js | |
| import { bumpStat } from 'calypso/lib/analytics/mc'; | |
| bumpStat( 'newdash_visits', 'sites' ); | |
| ``` | |
| ### `bumpStat( obj )` | |
| Bump multiple WP.com stats: | |
| ```js | |
| import { bumpStat } from 'calypso/lib/analytics/mc'; | |
| bumpStat( { | |
| stat_name1: 'stat_value1', | |
| statname2: 'stat_value2', | |
| } ); | |
| ``` | |