Documentation

Getting Started

LogPulse.io is a powerful tool for automated error logging and data export. This guide will help you set up and use LogPulse.io effectively.

Installation

To install LogPulse.io, add the following script tag to your HTML:

<script defer src="https://logpulse.io/serve/LP-XXXXXXX"></script>

Replace LP-XXXXXXX with your unique LogPulse identifier.

Error Logging

LogPulse.io automatically captures uncaught errors and unhandled promise rejections. To enable automatic error logging, initialize the SDK with:

LogPulse.init({autoErrorHandling: true});

Custom Logging

You can log custom data using the logCustom method:

LogPulse.logCustom({
    id: '19419112',
    title: 'Awesome T-Shirt',
    totalPrice: 9.99,
    gclid: 'gcl_912910011'
}, 'shopify_conversions');

The second parameter is the stream name, which helps organize your logs.

Data Export

LogPulse.io supports exporting data to various destinations:

  • Google Sheets
  • BigQuery
  • AWS S3

Configure your export settings in the LogPulse.io dashboard.

API Reference

LogPulse.init(config)

Initializes the LogPulse SDK with the given configuration.

LogPulse.logCustom(data, streamName)

Logs custom data to the specified stream.

Troubleshooting

If you're experiencing issues, check the following:

  • Ensure your LogPulse identifier is correct
  • Check if the SDK is properly loaded
  • Verify your subscription status

For further assistance, contact our support team.