https://github.com/itcig/wp-caliban
Caliban plugin for Wordpress
https://github.com/itcig/wp-caliban
wordpress wordpress-plugin wrapper
Last synced: 2 months ago
JSON representation
Caliban plugin for Wordpress
- Host: GitHub
- URL: https://github.com/itcig/wp-caliban
- Owner: itcig
- License: gpl-2.0
- Created: 2020-03-25T13:55:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T18:27:33.000Z (over 4 years ago)
- Last Synced: 2024-12-25T21:30:38.397Z (over 1 year ago)
- Topics: wordpress, wordpress-plugin, wrapper
- Language: PHP
- Size: 104 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Caliban WP Plugin
Set custom JS tracker properties using WP filters as long as these are called before the `wp_head` action is called.
### Examples:
**User Id**
```
Caliban\WP\ClientTracker::set('setUserId', 1357);
```
**Free-form key/value data**
```
Caliban\WP\ClientTracker::set('setSessionExtraData', ['a' => 1, 'b' => 'c']);
```