Installing the ProfitWell in-app snippet on Shopify

  1. Login to your Shopify admin
  2. On the left side, select Online Store under Sales Channels
  3. Choose Themes
  4. On your Live template, click Actions and select Edit Code
  5. Select your main *.liquidLayout
  6. Add the following snippet before the body element and replace PUBLIC_API_TOKEN_HERE with your public API token
<script id="profitwell-js" data-pw-auth="PUBLIC_API_TOKEN_HERE">
/* DO NOT DELETE - this code is used to accept our payments or send data to ProfitWell*/
{% if customer %}
profitwell('start', { 'user_email': '{{}}' });
{% else %}
profitwell('start', {});
{% endif %}

How did we do?

Powered by HelpDocs (opens in a new tab)