Team,
I am looking forward to install AEM data layer for my local instance which is http://localhost:4502/sites.html/content/we-retail . So that the way and method of getting data to anaytics will make site easier and standard. Basically I am a analytics guy and not aware much on this data layer installation process. Please assit me with below.
1. Could you please tell me where can I get my AEM data layer packages from adobe?
2. Also, send me some docs or steps to be followed to install in my local host.
Thank you!!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Jayakrish ,
<script data-sly-use.digitalDataLayer="my.package.DigitalDataLayer">
(function () {
var digitalDataLayer = {
environment: {
environmentVersion: '${digitalDataLayer.environmentVersion @ context='scriptString'}',
environmentName: '${digitalDataLayer.environmentName @ context='scriptString'}',
siteName: '${digitalDataLayer.siteName @ context='scriptString'}',
statusCode: '${digitalDataLayer.statusCode @ context='scriptString'}'
},
target: {},
page: {
pageInfo: {
pageName: '${currentPage.name @ context='scriptString'}',
pageReferrer: document.referrer,
pageSiteSubsection: '${digitalDataLayer.pageSiteSubsection @ context='scriptString'}',
pageType: '${pageProperties.pageType @ context='scriptString'}',
pageURL: window.location.href
}
}
}
}());
</script>
Hi @Jayakrish ,
<script data-sly-use.digitalDataLayer="my.package.DigitalDataLayer">
(function () {
var digitalDataLayer = {
environment: {
environmentVersion: '${digitalDataLayer.environmentVersion @ context='scriptString'}',
environmentName: '${digitalDataLayer.environmentName @ context='scriptString'}',
siteName: '${digitalDataLayer.siteName @ context='scriptString'}',
statusCode: '${digitalDataLayer.statusCode @ context='scriptString'}'
},
target: {},
page: {
pageInfo: {
pageName: '${currentPage.name @ context='scriptString'}',
pageReferrer: document.referrer,
pageSiteSubsection: '${digitalDataLayer.pageSiteSubsection @ context='scriptString'}',
pageType: '${pageProperties.pageType @ context='scriptString'}',
pageURL: window.location.href
}
}
}
}());
</script>
Views
Replies
Total Likes
Everything should be in the documentation, https://blogs.adobe.com/contentmanagement/2017/04/18/be-an-aemrockstar-use-aem-datalayer/ Just start from Step 1.
With the documentation, make sure to watch the video: https://spark.adobe.com/video/RE9fXgcyYVTrC
You can download the AEM content package from Proficient Digital's GitHub releases tab, https://github.com/PerficientDigital/AEM-DataLayer/releases
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies