How to integrate Google Tag ManagerHow to integrate Google Tag Managerhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=755194562024-03-28T22:55:40Z2024-03-28T22:55:40ZRE: How to integrate Google Tag ManagerKailash Yadavhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=762252122016-07-04T09:35:49Z2016-07-04T09:35:49ZI am not sure if this feature is available or not in Liferay 6.1.x. Check portal setting/Site setting if this setting is there. If not you can add script in your theme.Kailash Yadav2016-07-04T09:35:49ZRE: How to integrate Google Tag ManagerJosep Palouhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=762247402016-07-04T08:49:10Z2016-07-04T08:49:10Z<div class="quote-title">Kailash Yadav:</div><blockquote>You can try Out-of-box Analytics feature, It should work.<br /><br />Go to Control Panel -> Portal Settings (in Configuration)<br />Click on Analytics tab on Right side panel. There will be already google and piwik in text area. Add GoogleTagManager in new line.<br /><img src="https://s32.postimg.org/qp7ljfz39/portal.png" /><br /><br />Save and go to Site Setting and click on Analytics tab. There you can put your GTM script.<br /><img src="https://s32.postimg.org/ixv815ryd/site.png" /><br /><br />Hope it will help!<br /><br />Hi.<br /><br />My version is old i use 6.1.1 CE GA2 and the menu panel is different.<br /><br />Thanks!Josep Palou2016-07-04T08:49:10ZRE: How to integrate Google Tag ManagerKailash Yadavhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=760994352016-07-01T05:44:07Z2016-07-01T05:44:07ZYou can try Out-of-box Analytics feature, It should work.<br /><br />Go to Control Panel -> Portal Settings (in Configuration)<br />Click on Analytics tab on Right side panel. There will be already google and piwik in text area. Add GoogleTagManager in new line.<br /><img src="https://s32.postimg.org/qp7ljfz39/portal.png" /><br /><br />Save and go to Site Setting and click on Analytics tab. There you can put your GTM script.<br /><img src="https://s32.postimg.org/ixv815ryd/site.png" /><br /><br />Hope it will help!Kailash Yadav2016-07-01T05:44:07ZRE: How to integrate Google Tag ManagerJosep Palouhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=759219912016-06-27T10:20:40Z2016-06-27T10:20:40ZI could also do it in the Javascript section of my theme? I mean i can put Javascript in the theme, if i put the tag manager code there i get:<br /><br />// <![CDATA[<br /> <noscript><iframe src="//www.googletagmanager.com/n....<br /><br />And that dont work, could i do that? Could i execute the code without // <![CDATA[?<br /><br /><br /><br />Thanks.Josep Palou2016-06-27T10:20:40ZRE: How to integrate Google Tag Managerdeveshree zawarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=757023412016-06-24T13:22:31Z2016-06-24T13:22:31ZHi,<br /><br />Along with having it in the theme you can also integrate with the following way using hook:<br /><br />1) Include the below property in portal.properties file<br />admin.analytics.types=google\npiwik\ngoogletagmanager<br /><br />2) Override the body_top.jsp.<br /><br />Hope it helps!<br /><br />Thanks,<br />Deveshreedeveshree zawar2016-06-24T13:22:31ZRE: How to integrate Google Tag ManagerJosep Palouhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=755600012016-06-21T14:06:19Z2016-06-21T14:06:19Z<div class="quote-title">David H Nebinger:</div><blockquote>So you can do that using your theme, just insert it into portal_normal.vm.</blockquote><br /><br />Ok i will try, thank you a lot for your help.Josep Palou2016-06-21T14:06:19ZRE: How to integrate Google Tag ManagerDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=755308342016-06-20T20:54:47Z2016-06-20T20:54:47ZSo you can do that using your theme, just insert it into portal_normal.vm.David H Nebinger2016-06-20T20:54:47ZRE: How to integrate Google Tag ManagerJosep Palouhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=755197122016-06-20T14:53:02Z2016-06-20T14:53:02ZI have to include the Google Tag Manager script like the Analytics script. But the Google Tag Manager must be in the begining of <body><br /><br />Google says: "Copy and paste the code snippet into your website. Paste this code so that it appears immediately after the opening <body> tag on every page on your site."<br /><br />Thanks for the help!Josep Palou2016-06-20T14:53:02ZRE: How to integrate Google Tag ManagerDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=755189932016-06-20T14:22:07Z2016-06-20T14:22:07ZThe only way to get to the beginning of the <body /> tag is via a theme. Not sure what you want to do in there, but that would be the starting point.David H Nebinger2016-06-20T14:22:07ZHow to integrate Google Tag Manager