WebinarUnlocking growth outside the US - 24 July   Join us
Installing the ProfitWell .js snippet with Wordpress and Memberpress

Follow the instructions below to install the ProfitWell .js snippet. You will need to install the snippet twice - once on your marketing site, and once within your web-app (a page your customer lands on after they log in).

  1. Download and install the "Code Snippets" free plugin (not related to ProfitWell).
  2. Add the ProfitWell snippet, and replace PUBLIC_API_TOKEN_HERE with your public API token:
function add_profitwell_script_to_footer() {
    /* DO NOT DELETE - this code is used to accept our payments or send data to ProfitWell */
    $token = "PUBLIC_API_TOKEN_HERE";

    $start_options = "{}";
    $current_user = wp_get_current_user();
    if ($current_user->exists()) {
         $start_options = "{user_email: '{$current_user->user_email}'}";
    echo "
    <script id='profitwell-js' data-pw-auth='$token'>

        profitwell('start', $start_options);
add_action('wp_footer', 'add_profitwell_script_to_footer');

Need more help?

Login to your Paddle account to chat directly with our Seller Support Team or…