Skip to main content

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

  1. In your WordPress admin dashboard, go to Plugins > Add New
  2. Search for "Produktly"
  3. Click "Install Now" and then "Activate"
  4. Go to Settings > Produktly
  5. Enter your Client Auth Token (found in your Produktly Dashboard)
  6. Click Save Changes

Manual installation

  1. Download the plugin from the WordPress Plugin Directory
  2. Upload the plugin files to /wp-content/plugins/produktly
  3. Activate the plugin through the Plugins screen in WordPress
  4. Go to Settings > Produktly and enter your Client Auth Token

Settings

SettingDescriptionDefault
Client Auth TokenYour Produktly token. Found in your Dashboard.-
Enable on FrontendShow Produktly widgets on your public-facing pages.Enabled
Enable in Admin DashboardShow Produktly widgets inside the WordPress admin area.Disabled
Enable User IdentificationAutomatically 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.