HTML Wrap |
---|
|
Page properties |
---|
Download | Artifact resource link |
---|
groupId | info.magnolia.marketingtags |
---|
artifactId | magnolia-marketing-tags |
---|
label | $artifactId.jar |
---|
renderType | download_link |
---|
resourceType | JAR |
---|
|
| Edition | EE Std, Cloud | License | | Issues | MGNLTAGS | Maven site | Marketing Tags | Latest version | Artifact resource link |
---|
groupId | info.magnolia.marketingtags |
---|
artifactId | magnolia-marketing-tags |
---|
label | $version |
---|
renderType | display_only |
---|
resourceType | JAR |
---|
|
| |
|
Include Page |
---|
| DOCS56:_What are marketing tagsDOCS56: |
---|
| _What are marketing tags |
---|
|
Installing
Include Page |
---|
| DOCS56:_Maven is the easiest way to installDOCS56: |
---|
| _Maven is the easiest way to install |
---|
|
Artifact maven dependencies snippet |
---|
groupId | info.magnolia.marketingtags |
---|
artifactId | magnolia-marketing-tags |
---|
|
Include Page |
---|
| DOCS56:_Pre-built jars are also availableDOCS56: |
---|
| _Pre-built jars are also available |
---|
|
Artifact resource link |
---|
groupId | info.magnolia.marketingtags |
---|
artifactId | magnolia-marketing-tags |
---|
label | $artifactId.jar |
---|
renderType | download_link |
---|
resourceType | JAR |
---|
|
Configuration
Apps
Marketing Tags app allows editors to insert tags such as JavaScript code snippets for analytics engines into Web pages.
...
Include the code snippet as a resource file in your project.
Code Block |
---|
language | js |
---|
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> |
Use the Freemarker include
directive in your template script, as if you were referencing another script.
Code Block |
---|
|
<head>
[#include “/my-module/webresources/js/gtag.js"]
</head> |