PHP Integration
Manual implementation of the tracking script within PHP-based environments.
Implementation Guide
For PHP setups, the best approach is appending the snippet into your global template header file (typically header.php, layout.php, or master.blade.php).
Source code to inject
index.php / header.php
<?php /** * DashFast.cz - Integrační kód pro PHP * Vložte tento blok do hlavičky vašeho webu (ideálně header.php) */ ?> <script src="https://dashfast.cz/script.js" data-domain="vasedomena.cz" data-api-key="VASE_WEBSITE_ID" ></script>
Server-side rendering
The tracking payload executes purely client-side (inside the browser), which means zero overhead for your PHP backend server and zero layout rendering impact.
Dynamic Project IDs
If you are overseeing multiple properties, you can populate the data-api-key attribute dynamically via a PHP configuration variable.
Placement Note: To ensure maximum data fidelity, we highly recommend positioning the snippet right before the closing </head> tag. The defer attribute handles async non-blocking execution while the page content is parsing.