How to Find your Task Analytics Tracking Code

Find your Task Analytics Tracking Code

The Task Analytics javascript tracking code needs to be installed on your website, app or intranet in order to invite visitors to participate and answer questions. This is a unique javascript code that refers to your account and survey(s). 

Step 1: Select your survey
Log in via and select the survey you want to install on your website. If you haven’t created a survey, you can create a new survey. You can click on a survey to see the survey’s dashboard and options. 

You do need to have an admin rights to access the script

Step 2: Visit the Setup section
Every survey has a dedicated menu in the top left corner. Select “Setup”.
Select "Setup" from the survey menu
Step 3: Get the installation code
The setup menu contains a menu item called “Code”. Select this menu to view the Javascript installation code. You can either copy the code or send the code by email. If you choose to send the code by email, installation instructions will be provided as well.
Select "Code" option from the Settings menu
The code will look something like this:
  1. <script> (function(a,b,c,d,e,f,g,h,i){i=/(^|;)\s*_tmc=([^;]+)/.exec(a[c]),i=i?i[2]:"",("done"!==i|| /[?&]_tmsurvey?(=|&|$)/.test(e))&&(g=a.getElementsByTagName(b)[0],h=a.createElement(b),h[d]("src",f+ "?r="+i+"&"+1*new Date),h[d]("type","text/javascript"),h.async=!0,g.parentNode.insertBefore(h,g)) })(document,"script","cookie","setAttribute",,"//"); </script>
Once done, you can check if the Task Analytics code is installed correctly. Verify your installation

    • Related Articles

    • Installation guide for Task Analytics

      You can install Task Analytics on your website, app or intranet by adding the Task Analytics javascript code on the pages you want Task Analytics to run on. Step 1: Get the Task Analytics javascript Retrieve the Task Analytics javascript. This ...
    • Verify the installation of Task Analytics

      Check whether Task Analytics is installed on your website. There are different methods you can use to verify a correct installation: Option 1: Search for “taskanalytics” in the source code This option only works if you’ve installed Task ...
    • Getting Started with Task Analytics

      Geting Started with Task Analytics Below are instructions to install and run Task Analytics, including the following main topics: Account and User access A brief introduction to the Task Analytics Survey Technical installation Preview & optimize your ...
    • Enabling Google Analytics integration for Task Analytics

      Task Analytics can be set up to feed intent data to Google Analytics, providing enhanced segmentation of behavioral data. This allows you to add a segment to filter out what the customers came for and whether they could complete the task they ...
    • Analyzing Task Analytics data in Google Analytics

      You've finished the integration of Task Analytics and Google Analytics. Great! Now it's time to analyse the Task Analytics in Google Analytics. Create segments, filter data based on completion scores, segments or audiences.  Google Analytics 3rd ...