For the complete documentation index, see llms.txt.

Event triggered replays

Last updated View as Markdown

Event triggered replays require a specific event type to be defined. ETR events allow you to trigger the collection and saving of the visitor's session.

For more information, see Events Handling.

  1. Open your container and go to the templates section.

  2. Select Search Gallery.

  3. Type in contentsquare and select the Contentsquare - ETR Event option.

  4. Click Add to workspace.

  5. Confirm your choice by selecting Add

  6. Go to the Tags section and click the New button to create a new tag.

  7. Configure it by selecting the top-right button.

  8. Search for contentsquare and select the Contentsquare - ETR Event template that you've previously added to your container.

  9. Give a title to the tag and input your Tag ID in the dedicated field.

  10. Enter the event name.

  11. Select the event type: Page Level or Session Level.

  12. Select the appropriate trigger to fire this tag only when you wish for the collection of Session Replay to be started.

  13. Save your changes and go back to your container. You should now see both the template and the newly created tag.

  1. Within Tag properties, select Rules > Add Rule.

  2. Specify a name, events, and conditions.

  3. Add an Action with the following settings:

    • Extension: Contentsquare,
    • Action Type: ETR Event,
    • Name: Contentsquare - ETR Event.
  4. On the right-hand side, enter the event name.

  5. Select the event type: Page Level or Session Level.

  6. Select Keep Changes > Save.

To trigger an ETR event for the Event Triggered Replay feature, use the trackEventTriggerRecording command:

At Session level

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(["trackEventTriggerRecording", "@ETS@vocSubmit"]);
</script>

At Page level

<script type="text/javascript">
window._uxa = window._uxa || [];
window._uxa.push(["trackEventTriggerRecording", "@ETP@formError"]);
</script>