How to add google tag manager on service portal

Juhi Jha
Tera Contributor

How to add google tag manager on service portal 

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please check the below thread:-

https://community.servicenow.com/community?id=community_question&sys_id=301c5c74db7efb001cd8a345ca961936

Please mark answer correct/helpful based on Impact.

Community Alums
Not applicable

Hi @Juhi Jha ,

You can do the following to add the GTM to a Portal: 

1. Create a UI Script and add the function in script tag which is provided by google to this UI Scrip.

2. Include this UI Script to the Theme which your portal is using

3. Create the datalayer.push() events

 

GTM is successfully intergrated when you can watch the dataLayer Array in the Developer Console in your browser.

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

how to create datalayer.push() events

Saurav11
Kilo Patron
Kilo Patron

Hello,

You can follow the below article:-

It ahs step by step on how to do this:-

https://community.servicenow.com/community?id=community_article&sys_id=59934301dbb7eb801cd8a345ca9619f7

Please mark answer correct/helpful based on Impact.