Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2014-10-31 10:51:11

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Integrating with google tag manager

Hi, I am trying to get google analytics event tracking working by installing google tag manager code when the livechat widget loads.

https://developers.google.com/tag-manager/quickstart

https://support.google.com/tagmanager/#topic=3441530


Livechat widget loads in iframe, so the tag manager code needs to be loaded in that.

But, it needs to load after the head and body html declarations on the page are loaded. I believe the live chat widget currently is called before the head and body declarations are loaded. Is there any way to have the widget called after these decs are made?

...or maybe another way to implement this? e.g. I notice that it is written into functions.php in wordpress installations:

http://www.wolfundbaer.ch/add-the-googl … e/?lang=en


...maybe writing the code into one of the tpl files? The tag code would need to run when either(both) the widget or the page embed code are run.

Any help appreciated, thanks smile

Offline

#2 2014-10-31 10:57:34

Robotics445
Member
Registered: 2014-02-25
Posts: 64

Re: Integrating with google tag manager

To clarify, although I'm not a programmer, I believe the tag manager code, within the iframe, would need to be called after the body html declaration.

Offline

#3 2014-10-31 15:30:52

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Integrating with google tag manager

Sorry,

But through forum we definitely won't go anywhere like everything was stated in documentation. If you want commercial support and finish this pointless forum posting just skype me.

Offline

Board footer