ULEZ Postcode Checker - Integration Guide

The ULEZ (Ultra Low Emission Zone) Postcode Checker allows website visitors to check if their postcode falls within the ULEZ. This guide will help you integrate the checker into your own website.

Step 1: Copy the HTML and JavaScript code

The following code will include a ULEZ Postcode Checker into your website:

				
					<script>
  document.addEventListener("DOMContentLoaded", function() {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = 'https://ulez.co.uk/framescript.js';
    document.head.appendChild(script);
});
</script>

<div class="ulez-embed" data-url="https://ulez.co.uk/embedded-pc">
  <p>Data sourced from <a href="https://ulez.co.uk">ulez.co.uk</a></p>
</div>
				
			

Step 2: Paste the code into your website

Paste the copied code into the HTML of the webpage where you want the ULEZ Postcode Checker to appear. If you’re using a Content Management System (CMS) like WordPress, you might need to insert this code using the HTML or Text editor view, rather than the Visual editor view.

Step 3: Save and check your webpage

Save your webpage and then load it in a web browser. You should now see the ULEZ Postcode Checker on your webpage.

Please note:

  • Ensure the script is loaded correctly. You can inspect the page (Right-click > Inspect) and check the Network tab to see if framescript.js is loaded without any errors.

  • Make sure the specified data-url in the HTML tag is accessible and responding with the correct data.

  • This code relies on JavaScript to work, so it will not function correctly if the user has JavaScript disabled in their browser.

For any issues or further questions, you can contact the ULEZ support at [email protected].