Advanced Page Tagging Examples
Tagging a Link to non-HTML document
This link to a Excel document
will send page tag data to the EMS page tag logs when the link is selected.
<a href="https://earthdata.nasa.gov/files/2012mmdd_SAMPLE_PageTagManifest.xls" onclick="return ntptLinkTag( this );">Word document</a>
Link to non-HTML document - no delay
This is the same Excel document
as above, but it overrides the default 1 second delay in sending page tag data to EMS, and will send the data immediately upon selection.
<a href="https://earthdata.nasa.gov/files/2012mmdd_SAMPLE_PageTagManifest.xls" onclick="return ntptLinkTag( this, '', -1 );">same Word document</a>
Link to FTP site product - 2-second delay
This link to a FTP site data product
will send page tag data to the EMS page tag logs when selected, waiting a maximum of two seconds to ensure the data is sent:
<a href="ftp://n4ftl01u.ecs.nasa.gov/SAN/GLAS/GLA01.033/2003.02.21/GLA01_033_1102_001_0087_4_01_BRWS_0001.1.jpg" onclick="return ntptLinkTag( this, '', 2.0 );">FTP site data product</a>
Mark Link to FTP Site as External/Exit Site
This is the same link to a FTP site data product
as above, but it will mark the link as one to an external site:
<a href="ftp://n4ftl01u.ecs.nasa.gov/SAN/GLAS/GLA01.033/2003.02.21/GLA01_033_1102_001_0087_4_01_BRWS_0001.1.jpg" onclick="return ntptLinkTag( this, 'lk=1', 2.0 );">FTP site data product</a>
NOTE: The above designation allows links to external sites to be analyzed in the Link Summary but they are NOT tracked as a page view.
Mark a Link as an Event, not a Page View
This PDF document link
is implemented as an event and NOT a page view.
<a href="https://earthdata.nasa.gov/files/TheEMSPageTagImplementationGuide.pdf" onclick="ntptEventTag('ev=PDFeventonly' );">PDF document link</a>
This is the same PDF link, also recorded as an event, NOT a page view, but it also sets a custom page tag paramenter with the name of the PDF document as its value.
<a href="https://earthdata.nasa.gov/files/TheEMSPageTagImplementationGuide.pdf" onclick="ntptEventTag('ev=PDFevent&PDFdocument=' + this.href );">same PDF link again</a>