====================================
Google Analytics/Google Tag Manager
====================================
Core Integration
==================
The website relies on the Google Tag Manager module to embed the appropriate container. We currently have 1 container listed on the site that feeds data into the Illinois Legal Aid Online (2016 - beyond) Google Analytics account.
Data Layer on IllinoisLegalAid.org
====================================
The default data layer includes the language being viewed, userUid, and detected zip code.
.. code-block::
On many pages, such as the drill-down for navigation and content pages, additional data layer elements are present by default.
Taxonomy-based pages
----------------------
Taxonomy based pages, like navigational IA pages, include:
* entityName (the name of the taxonomy term)
* entityStatus (1 for published; 0 for unpublished)
* entityUuid (the unique identifier for the taxonomy term)
* entityType (taxonomy_term)
* entityVID (vocabulary name)
* entityBundle (vocabulary name)
* entityID (taxonomy term ID)
* entityTitle (taxonomy term name)
* entityTaxonomy (object of vocabulary, term ID, term name)
.. code-block::
Content pages
----------------
All content pages contain additional metadata. Depending on the content type, some elements may be empty.
* entityCreated - timestamp of when the content was initially created
* entityLangcode - language of the page being viewed
* entityStatus - 1 is published; 0 is unpublished
* entityUid - user ID of the author
* entittyUUid - unique id for the content
* entityVid - reversion ID
* entityName - author's name
* entityType - node
* entityBundle - content type (legal_content, legal_problem, basic_page, etc)
* entityID - Drupal Node ID
* entityTitle - Title of the content
* primary_category - for legal content, the primary top level category assigned to the content
* secondary_category - for legal content, the second level category assigned to the content
* legal_issues - an object of taxonomy terms from the legal issues taxonomy that the content is associated with.
* life_areas - an object of taxonomy terms from the life areas that COPE content is associated with
* navigational_ia - an object of taxonomy terms from the navigational IA that legal content is associated with
.. code-block::