Implementing Effective Measure across your website(s) has been designed to be quick and easy. To ensure all traffic is included in your reports, the tag must be added to all content pages of your website. The tag will then load each time a page is loaded in a browser and send a record to the Effective Measure servers. Secure (https) pages are handled automatically by the tag and can be safely included on those pages.

Getting the tag

As part of the Effective Measure registration process, you will have received a copy of your Effective Measure Tag via email. Please contact Effective Measure support, if you require the tag to be re-issued.

Adding the tag to your site

Adding the Effective Measure tag to your pages requires some technical knowledge of your website configuration. Please forward these instructions to your technical team if you prefer.

The simplest way to get the tags added to each page of your site is by using page templates or website includes, as supported by your server and content management system. If these methods are not available, the tag must be added by hand to each page.

Placement of the tag in the page

The tag should appear at the end of the HTML page code, immediately before the closing </body> tag.  It is very important that the tag be nested inside the HTML body tags of the host page.  When installed out side of the body tags the tag may not work reliably.
----------------------------------------------------------------------------------------------------------------------------

 Example 1: A correctly placed tag, immediately above the closing  tag.

<!-- BEGIN EFFECTIVE MEASURE CODE -->
<!-- COPYRIGHT EFFECTIVE MEASURE -->
<script type="text/javascript">
(function() {
   var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
   em.src = ('https:' == document.location.protocol ? 'https://us-ssl' : 'http://us-cdn') + '.effectivemeasure.net/em.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
})();
 </script>
<noscript>
<img src="https://us.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
</noscript>
<!--END EFFECTIVE MEASURE CODE -->
 </body>
</html>

----------------------------------------------------------------------------------------------------------------------------

Incorrectly placed tags

The Effective Measure tags have been tested to work when implemented as described above. Tags implemented differently will cause inconsistencies, including your numbers being underreported and surveys not launching. Below are examples of tags located incorrectly on the page.

----------------------------------------------------------------------------------------------------------------------------
Example 2: Tag located in  section of the page will not load correctly in all browsers.
 

<!-- BEGIN EFFECTIVE MEASURE CODE -->
<!-- COPYRIGHT EFFECTIVE MEASURE -->
<script type="text/javascript">
      (function() {
        var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
        em.src = ('https:' == document.location.protocol ? 'https://us-ssl' : 'http://us-cdn') + '.effectivemeasure.net/em.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
      })();
   </script>
   <noscript>
      <img src="https://us.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
   </noscript>
   <!--END EFFECTIVE MEASURE CODE -->
</head>
<body>

----------------------------------------------------------------------------------------------------------------------------

Example 3: Tags located out side <html> section of the page will not load correctly in all browsers. Note how in the example below the Effective Measure tag has been placed below the closing HTML tag of the page. 

</body>
</html>
<!-- BEGIN EFFECTIVE MEASURE CODE -->
<!-- COPYRIGHT EFFECTIVE MEASURE -->
<script type="text/javascript">
    (function() {
        var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
        em.src = ('https:' == document.location.protocol ? 'https://us-ssl' : 'http://us-cdn') + '.effectivemeasure.net/em.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
    })();
</script>
<noscript>
    <img src="https://us.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
</noscript>
<!--END EFFECTIVE MEASURE CODE -->

 ----------------------------------------------------------------------------------------------------------------------------
Example 4: Tags located inside an <iframe> that is hosted on a different domain than the page displayed to the user.

Malformed tags

Occasionally content management systems or HTML editors, can cause malformed tags to be added to pages. Malformed tags will not load consistently and will result in incorrect reporting of data. Below are some examples malformed tags.

----------------------------------------------------------------------------------------------------------------------------
Example 5: HTML comment tags added to the tag have disabled it
 

      <!-- BEGIN EFFECTIVE MEASURE CODE -->
      <!-- COPYRIGHT EFFECTIVE MEASURE -->
      <!--<script type="text/javascript">
       (function() {
          var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
          em.src = ('https:' == document.location.protocol ? 'https://us-ssl' : 'http://us-cdn') + '.effectivemeasure.net/em.js';
          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
         })();
      </script>
      <noscript>
         <img src="https://us.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
      </noscript>-->
      <!--END EFFECTIVE MEASURE CODE -->
   </body>
</html>

----------------------------------------------------------------------------------------------------------------------------

Confirming the tag is working

To confirm that a page has been tagged correctly, you should load the page in a browser and view the source. The tag should appear exactly as it was in the original file sent to you. If you are familiar with web development tools, you will be able to see a record posted to the Effective Measure servers when a page loads.

Shortened URL: http://emeasu.re/tagpage

Did this answer your question?