Skip to content

Debug ​

Debug mode writes each event, its checks and the response of QuickPipe to the browser console. Use it when an event does not arrive.

Procedure ​

  1. Start debug mode. With the script tag:

    js
    lg('debug', true);

    With npm:

    ts
    lg.debug(true);
  2. Open the browser console and do the action again.

  3. Stop debug mode:

    js
    lg('debug', false);

Result ​

The console shows each event before the client sends it, the reason when the client drops an event, and the response of each batch.

Messages ​

MessageReasonFix
Invalid event nameThe name has a character that the client does not acceptUse a-z, 0-9, _, ., : and - only
Properties too largeThe properties are larger than 32 KB, deeper than 5 levels or have more than 200 keysSend fewer properties
No consentThe visitor did not give consentRefer to Set consent
Secret key in a browserThe key starts with lg-sec-Use the publishable key
Request failed, retryThe network or the endpoint did not answerThe client tries again. No action is necessary.