It's easy to install and track your customers on Thinkific based websites, using the Gist JavaScript code snippet. Here are the steps you need to do:

1. Copy the Gist JavaScript code from the Settings > Tracking code page.


Gist JavaScript Code

Here is the Gist JS code snippet which you simply need to paste in your website code, before the closing </head> tag.

<!-- start Gist JS code-->
<script>(function(d,h,w){var gist=w.gist=w.gist||[];gist.methods=['trackPageView','identify','track','setAppId'];gist.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);gist.push(e);return gist;}};for(var i=0;i<gist.methods.length;i++){var c=gist.methods[i];gist[c]=gist.factory(c)}s=d.createElement('script'),s.src="https://widget.getgist.com",s.async=!0,e=d.getElementsByTagName(h)[0],e.appendChild(s),s.addEventListener('load',function(e){},!1),gist.setAppId("WORKSPACE_ID"),gist.trackPageView()})(document,'head',window);</script>
<!-- end Gist JS code-->

IMPORTANT: Remember to replace “WORKSPACE_ID” with your Workspace ID.

2. Inside your Thinkific admin dashboard, go to Settings -> Code & analytics -> Site footer code

3. Paste your Gist tracking code inside this box and click on Save

That's it! You've installed Gist on your Thinkific website..

Tracking logged-in Thinkific users in Gist

To track your customers in Gist, you can add the following code right beneath the tracking you just installed.

<script> if(Thinkific.current_user !== null) {
  gist.identify({
    name: Thinkific.current_user.full_name, // Full name
    email: Thinkific.current_user.email // Email address
  });
}
</script>

If you need any assistance with this, or if you run into problems anywhere in this process, feel free to reach out to us on live chat.


Need Help?

If you have any further questions, please start a Live Chat. Just "Click" on the Chat Icon in the lower right corner to talk with our support team.