Installing KM in WordPress


Our WordPress plugin helps make it much easier to install our JavaScript Library for your WordPress site. Please refer to that page for instructions:

External Integrations / Wordpress

Identifying Users in WordPress

If you are implementing WordPress without the plugin, this PHP snippet could help get the username of the current user.

_kmq.push(['identify', '<?php $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) echo $current_user->user_login; ?>']);

References:

Is anything on this page unclear? Suggest edits on Github!