• frankatshortstays

    (@frankatshortstays)


    For anyone that has used Intercom, I am attempting to track events on submission of a form or successful email delivery. Whatever I can get to work.

    document.addEventListener( 'wpcf7mailsent', function( event ) {
      Intercom('trackEvent', "emailEvent");
    }, false );

    The above is what I added to Additional Settings which doesn’t appear to be working. I’m at a loss and have no idea how to make this work. Any direction is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter frankatshortstays

    (@frankatshortstays)

    @takayukister

    I did and posted the event I created above. Am I doing something wrong?

    Thread Starter frankatshortstays

    (@frankatshortstays)

    console.log('test1');
    document.addEventListener( 'wpcf7mailsent', function( event ) {
      console.log('test2');
      Intercom('trackEvent', "emailEvent");
    }, false );

    When this is in Additional Settings, nothing fires off in the Chrome Dev Console. Is this correct??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘TrackEvent for Intercom’ is closed to new replies.