Skip to main content

The PreTeXt Guide

Subsection 44.4.1 HTML Analytics

The
/publication/html/analytics
element can have the following attributes:
  • @google-gst: a Google global site tag, which is an ID you get from Google. Do not copy the identification numbers from another project—be sure to obtain your own for your project.
  • @statcounter-project, @statcounter-security: ID numbers you get from StatCounter. Do not copy the identification numbers from another project—be sure to obtain your own for your project.
Setting these attributes to non-empty strings is the signal to add the relevant code to each of the pages of your HTML output. See Section 29.7 for more.