Installing the ProfitWell in-app snippet on Thinkific

  1. Inside your Thinkific admin dashboard, go to Settings -> Code & analytics -> Site footer code
  2. Add the following snippet, replacing PUBLIC_API_TOKEN_HERE with your public API token, and click on Save.
<script id="profitwell-js" data-pw-auth="PUBLIC_API_TOKEN_HERE">
(function(i,s,o,g,r,a,m){i[o]=i[o]||function(){(i[o].q=i[o].q||[]).push(arguments)};
a=s.createElement(g);m=s.getElementsByTagName(g)[0];a.async=1;a.src=r+'?auth='+
s.getElementById(o+'-js').getAttribute('data-pw-auth');m.parentNode.insertBefore(a,m);
})(window,document,'profitwell','script','https://public.profitwell.com/js/profitwell.js');

profitwell('start', {
'user_email': Thinkific.current_user ? Thinkific.current_user.email : ''
});
</script>



How did we do?