WordPress
The official Produktly WordPress plugin lets you integrate Produktly with your WordPress site without writing any code.
Features
- Adds the Produktly script to your site automatically
- Enable/disable on frontend and/or admin dashboard separately
- Automatically identifies logged-in WordPress users with their User ID, email, name, and role
Installation
- In your WordPress admin dashboard, go to Plugins > Add New
- Search for "Produktly"
- Click "Install Now" and then "Activate"
- Go to Settings > Produktly
- Enter your Client Auth Token (found in your Produktly Dashboard)
- Click Save Changes
Manual installation
- Download the plugin from the WordPress Plugin Directory
- Upload the plugin files to
/wp-content/plugins/produktly - Activate the plugin through the Plugins screen in WordPress
- Go to Settings > Produktly and enter your Client Auth Token
Settings
| Setting | Description | Default |
|---|---|---|
| Client Auth Token | Your Produktly token. Found in your Dashboard. | - |
| Enable on Frontend | Show Produktly widgets on your public-facing pages. | Enabled |
| Enable in Admin Dashboard | Show Produktly widgets inside the WordPress admin area. | Disabled |
| Enable User Identification | Automatically identify logged-in users to Produktly with their User ID, email, name, username, role, and signup date. | Disabled |
User identification
When Enable User Identification is turned on, the plugin automatically calls window.Produktly.identifyUser() for logged-in WordPress users. This sends the following data:
- User ID - WordPress User ID
- Email - User's email address
- Name - Display name
- Username - User nicename
- Role - Primary WordPress role (e.g. administrator, editor, subscriber)
- Signed up at - User registration date
This allows you to use targeting rules to show specific widgets to specific users, and to track user progress across sessions and devices.
Customizing user metadata
If you're a developer, you can modify the metadata sent to Produktly using the produktly_user_metadata WordPress filter:
add_filter( 'produktly_user_metadata', function( $metadata, $user ) {
$metadata['plan'] = get_user_meta( $user->ID, 'subscription_plan', true );
return $metadata;
}, 10, 2 );
FAQ
Do my site visitors need to install anything?
No. Once the plugin is installed and activated, visitors will see Produktly widgets automatically.
Does it work on the WordPress admin dashboard?
Yes. You can enable this in Settings > Produktly by checking "Enable in Admin Dashboard". This is useful if you want to show onboarding tours or tips to your WordPress admin users.