• Home
  • Use the standards
  • Templates
  • The City of Philadelphia is undertaking a Unified Web Analytics Strategy. Every page should contain the following tracking code to allow us to report on traffic, usage, clicks, and to collect other useful data about websites.

    Copy code
    <!-- Google Tag Manager [] -->
    <noscript><iframe src=""
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    <!-- End Google Tag Manager -->
    How to use


    1. Add the snippet immediately after the opening <body> tag in the site template or individual pages as needed. It should be present on every page of all city-owned sites managed by your department or agency.
    2. After you add this snippet to the page, email with the URL of the website for testing. You will receive confirmation that the site that should be tracked and the code is working. ODDT will enable tracking for your site in the citywide account so your site traffic will appear on