Load the browser tag
GET
/t.js
const url = 'https://collect.localhost/t.js';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://collect.localhost/t.jsThe tag script. Load it with your publishable site key:
<script src="https://collect.localhost/t.js" data-key="<site key>" async></script>.
Cached for five minutes, with an ETag.
Responses
Section titled “Responses”The script.
Media typeapplication/javascript
string
Not modified.