Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix by script - Avoid cross space links to DOCS56
HTML Wrap
alignright
classmenu
Page properties
Download
Artifact resource link
groupIdinfo.magnolia.marketingtags
artifactIdmagnolia-marketing-tags
label$artifactId.jar
renderTypedownload_link
resourceTypeJAR
EditionEE Std, Cloud
License
Include Page
DOCS56:_MLADOCS56:
_MLA
IssuesMGNLTAGS
Maven siteMarketing Tags
Latest version
Artifact resource link
groupIdinfo.magnolia.marketingtags
artifactIdmagnolia-marketing-tags
label$version
renderTypedisplay_only
resourceTypeJAR

Include Page
DOCS56:_What are marketing tagsDOCS56:
_What are marketing tags

Table of Contents

Installing

Include Page
DOCS56:_Maven is the easiest way to installDOCS56:
_Maven is the easiest way to install

Artifact maven dependencies snippet
groupIdinfo.magnolia.marketingtags
artifactIdmagnolia-marketing-tags

Include Page
DOCS56:_Pre-built jars are also availableDOCS56:
_Pre-built jars are also available

  • Artifact resource link
    groupIdinfo.magnolia.marketingtags
    artifactIdmagnolia-marketing-tags
    label$artifactId.jar
    renderTypedownload_link
    resourceTypeJAR

Configuration

Apps

Marketing Tags app allows editors to insert tags such as JavaScript code snippets for analytics engines into Web pages.

...

  1. Include the code snippet as a resource file in your project.

    Code Block
    languagejs
    title/<magnolia.resources.dir>/<my-module>/webresources/js/gtag.js
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-1234567-2"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-1234567-2');
    </script>
  2. Use the Freemarker include directive in your template script, as if you were referencing another script.

    Code Block
    languagexml
    titlehome.ftl
    <head>
       [#include “/my-module/webresources/js/gtag.js"]
    </head>