How to make header / footer - scripts run only on certain pages?

If you integrate a script / function / element in the header or footer file, it will be used globally on all pages. With the following script you can limit this only on certain pages.

<?php if ( is_page('ID OF THE DESIRED PAGE') ) { ?>
    <!-- Here comes the script in -->
<?php } ?>
Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.