Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
This fixes issues with browsers caching the tracking pixel if multiple requests go out the result in the same url being generated.
For example, if the following code were to run:
In most browsers, only one request would be made for the image, and the subsequent 9 requests would be returned from the browser cache.
This adds a CACHEBUST parameter with a random string of numbers to the url so that each request is unique. The additional parameter gets ignored by Loggly's collectors, so it doesn't modify the tracking payload.