<aside> 💡 Understanding: This guide explains how to install Traffic Cop Measure Mode for Ad Tech Vendors who do not have their own script.

</aside>

<aside> ❓ Looking for Block Mode Instructions? Use Installation SOP: Traffic Cop Block Mode for Ad Tech Vendors without In-house Script

</aside>

Setup

Embed the Traffic Cop Script

Request all the publishers who need to install Traffic Cop to simply place this script anywhere on their website page (replace the src link with your Traffic Cop script link).

<script type="text/javascript" async src="//c.pubguru.net/pg.site-config.js"></script>

🖊️ NOTE: The publishers are free to insert the Traffic Cop script within their code, but ensure it's placed before any operations that could significantly delay page loading. This is crucial to allow early detection of invalid traffic which would otherwise be affected by premature blocking. Ideally, it should be loaded after your ad load calls and essential measurement/tracking APIs.

Appendix: Important Reminders

Speed & Async Loading

For maximum speed, Traffic Cop must run async. An asynchronous script won't block the main thread while waiting for external data. This means the user interface (UI) remains responsive, allowing users to interact with the page even while data is being fetched. As such, please do not remove the async attribute or replace it with defer.

Caching

Do not copy the contents, and host them in your script. Traffic Cop uses CloudFront, one of the top-performing CDNs on the planet. There is no need to host the content on your server or CDN as it will result in delayed publishing of updates.

Caching, minifying, or lazy-loading this script is also not advised, as it can interfere with any tech or machine learning updates being delivered. Cached, minified, or lazy-loaded versions might continue to serve the old script or lead to some unintended behavior.