Skip to content

Instantly share code, notes, and snippets.

@johnbeadle
Created July 20, 2018 15:41
Show Gist options
  • Select an option

  • Save johnbeadle/9ee6e97266d419094182a22bb253ce1e to your computer and use it in GitHub Desktop.

Select an option

Save johnbeadle/9ee6e97266d419094182a22bb253ce1e to your computer and use it in GitHub Desktop.
if(lpTag && lpTag.events && lpTag.events.bind) {
lpTag.events.bind('lpUnifiedWindow','conversationInfo', (data,eventInfo) => {
// push to GTM once event is interactive.
if ( data.state && data.state == 'interactive') {
dataLayer.push(
{
});
});
}
@johnbeadle
Copy link
Author

screen shot 2018-07-20 at 14 22 53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment