Tagging with Javascript

In addition to our automatic  behavior tagging found in the recordings tab, you can also trigger a recording from the client side with the following javascript method:

_loq.push(["tag", customTag, star, overwrite] );

  • customTag is any string you want to tag the current user's recording with.
  • star is either true or false (to star it or not - DEFAULT is FALSE) 
  • overwrite is either true or false. (if true it will overwrite any existing tags, if false it will append this tag to any existing tags) Default is FALSE so it will append your new tag.
A simple example:
<script>
  window._loq = window._loq || []; // ensure queue available
  window._loq.push(["tag", "My Tag"]); // this will tag, won't star, and will append the tag
  window._loq.push(["tag","My Tag", true]); // this will tag and star and append the tag
  window._loq.push(["tag", "Any other tags will be replaced with this", false, true]); // this will tag without being starred, but will overwrite any existing tags
</script>

Realtime Updates
Visitors in the live visitor table will update instantly when using this API.

Note: Any tags inserted using javascript will automatically be added to the "Behavior Tags" section of the dashboard.

Still need help? Contact Us Contact Us