# Drift WordPress Integration

# Installation

1. Create and configure an account at [Drift](http://www.drift.com).
2. Add this plugin to WordPress and enable it. See [Managing Plugins](https://codex.wordpress.org/Managing_Plugins)
3. Visit https://app.driftt.com/settings/configure and copy the code chunk
4. Visit Drift Settings on your WordPress site and paste the code chunk into the textarea. Submit the settings form.

# Users

If a `$current_user` is present, we use their email as an identifier in the widget.
Otherwise the widget operates in [anonymous mode](https://www.drift.com/live-chat) and you can require that a user submit their email address. This allows you to talk with anonymous visitors on your WordPress site.

# Screenshots
## Drift chat minimized
![Drift chat minimized](https://raw.githubusercontent.com/Driftt/drift-wordpress/master/screenshot-1.png)

## Drift chat maximized
![Drift chat maximized](https://raw.githubusercontent.com/Driftt/drift-wordpress/master/screenshot-2.png)

## Drift WordPress Settings
![Drift WordPress Settings](https://raw.githubusercontent.com/Driftt/drift-wordpress/master/screenshot-3.png)

## Drift targeted messages
![Drift targeted messages](https://raw.githubusercontent.com/Driftt/drift-wordpress/master/screenshot-4.png)
