Tracking Pixel

Our tracking pixel is great to track views on particular pages, and to pass data back to Loggly including plaintext and JSON. You can send a maximum of 64kb per event. It makes use of an HTTP GET request.

Tracking Pixel Setup

  1. Insert Tracking Pixel
  2. Copy the tracking pixel link into your HTML page

    <img src="http://logs-01.loggly.com/inputs/TOKEN.gif?message=hello%20world%21&from=hoover"/>
    

    Replace:

  3. Send Data
  4. Open the page in your browser to execute the tracking pixel and send data to Loggly.

  5. Verify
  6. Verify we received logs with the hello world message within the last 20 minutes. It may take a few minutes to index the event. If it doesn’t work, see the troubleshooting section below.

    json.message:"hello world!"

    Tracking Pixel Logs

Advanced Tracking Pixel Options

  • HTTP/S Endpoint – for sending single events or multiline events
  • Automated Parsing – we automatically parse many types of logs including JSON and timestamps
  • Tags – you can include tags (Just like HTTP(S) POSTs). For example, to include the tag “pixel” <img src=”https://logs-01.loggly.com/inputs/TOKEN/tag/firsttag/secondtag/1*1.gif?key=value1&key2=value2&anotherkey=another%20value” />
  • Encrypt Data – Just switch the URL to https to encrypt the data. The SSL handshake may increase latency.
  • Search or post your own tracking pixel logs question in the community forum.

Troubleshooting Tracking Pixel Logs

If you don’t see any data show up in the verification step, then check for these common problems.

    Check Your App:

  • Wait a few minutes in case indexing needs to catch up
  • Make sure you replaced your customer token in the URL
  • If you are trying to use the automatic verify feature, make sure you have the hello world message
  • See our HTTP Troubleshooting Guide to verify HTTP events are being sent to Loggly.
  • Still Not Working?

  • Search or post your own tracking pixel question in the community forum.
Thanks for the feedback! We'll use it to improve our support documentation.


Top