Skip to main content

Configure tracking

Configure before loading the script:

window.ramonConfig = {
sessionId: responseReference,
interviewId: responseReference,
redactKeyboardInput: true,
redactPageUrl: true,
};
OptionMeaning
keyPublic survey tracking key. Usually passed in the script URL.
urlCollector API base URL. Defaults to https://api.getramon.com.
sessionIdUUID used as the Ramon session identifier.
interviewIdOptional platform response reference emitted with the session.
redactKeyboardInputReplaces printable keyboard input with Character.
redactPageUrlSends only the page origin instead of the full URL.
syncIntervalAccepted configuration value; collection currently flushes on the embed's fixed batch cycle.
debugAccepted configuration value; do not rely on it as a production diagnostic surface.

For maximum linkability, use your response UUID for both sessionId and interviewId. Use session identity to understand the embed's fallback behavior.