Create an if statement for logged in users vs logged out users.

For logged out users, aka visitors, use the code below:

Copy the script below and paste it as high as you can within the HEAD tag ( <head></head> ).

For logged in users, use the code below:

Copy the script below and paste it as high as you can within the HEAD tag ( <head></head> ).

Don’t forget to save the file.

For example, the full code for a store built with PHP would look like:

  <?php if ( user_loggedin() ) { ?>
          	 <script>
                  window.atlassSettings = {
                      APPKEY: "_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_",
                      tags: 'primary',
                      email: ''
                  }
                  var s = document.createElement("script");
                  s.type = "text/javascript";
                  s.src = "https://theatlass.com/t/t.min.js";	
                  document.head.appendChild(s);
              </script>
          <?php } else { ?>
          	 <script>
                  window.atlassSettings = {
                      APPKEY: "_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_",
                      tags: 'primary',
                  }
                  var s = document.createElement("script");
                  s.type = "text/javascript";
                  s.src = "https://theatlass.com/t/t.min.js";
                  document.head.appendChild(s);
              </script>
          <?php } ?>