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
- Insert Tracking Pixel
Copy the tracking pixel link into your HTML page
- TOKEN: your customer token from the source setup page
Open the page in your browser to execute the tracking pixel and send data to Loggly.
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.
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.
- Search or post your own tracking pixel question in the community forum.
Still Not Working?