Skip to content
Snippets Groups Projects
Forked from project / advanced_datalayer
2 commits behind, 2 commits ahead of the upstream repository.
Vishal Kadam's avatar
Vishal Kadam authored
4504a7ec
History

#ADVANCED DATALAYER

The Advanced Datalayer provides flexible possibility to manipulate datalayer page variables https://developers.google.com/tag-manager/devguide. This module is API module and provides base plugins code and admin part to create and manipulate your own datalayer page variables (tags).

  • basic approach, inherit logic and architecture are similar to the metatag module.
  • module based on plugin system, any datalayer tag is a plugin.
  • tags can be grouped, groups are also plugins.
  • global tags only available in global default edit form
  • out-of-box module provided GroupBase class and Root group (for root elements).
  • for tags exist base classes DatalayerNameBase and DatalayerDynamicNameBase for standard and dynamic calculated tags.
  • see Annotation for every type of plugin for details.
  • see Advanced Datalayer example module for examples

##TABLE OF CONTENTS

  • Requirements
  • Installation
  • Configuration
  • Maintainers

##REQUIREMENTS

This module requires the following module:

##INSTALLATION

  • Install as you would normally install a contributed Drupal module.

##CONFIGURATION

  1. Configure main defaults at Administration >> Configuration >> Search and metadata >> Datalayer tags (/admin/config/search/advanced-datalayer/page-variables).
  2. Additional bundle defaults can be added by clicking on "Add default datalayer tags".
  3. Tokens can be used in fields values to make tags values dynamic
  4. Module uses inherit and override system to build final tags values for any level (globals, entity type, entity bundle)
  5. Page (/admin/config/search/advanced-datalayer/page-variables/settings) settings that allowed control which datalayer tags are available for each entity bundle.
  6. To manipulate datalayer tags in specific entity, add "Datalayer tags" field to this entity
  7. Submodule 'Context Advanced Datalayer' integrate context and Advanced Datalayer, it allowed override Datalayer tags based on different conditions from context.

MAINTAINERS

Maintainers: