Support » Plugin: Intercom for WordPress » How do I track events?

  • Resolved MrJMassey

    (@mrjmassey)


    I was able to get my previous issue resolved once I realized I had the plugin installed on the wrong installation of WordPress.

    Anyway, my question is now surrounding events and many of the customization features to make Intercom useful to us.

    1. How do I send information like purchases occuring, purchase amounts, products purchased etc to Intercom?

    2. How can I set up an event that tracks when a user watches a video or watches a set of videos? Or for that matter, hasn’t watched a set of videos?

    3. And also things like warning messages based on time elapsed since last failed payment etc?

    J.

    https://wordpress.org/plugins/intercom-for-wordpress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Simon Blackbourn

    (@lumpysimon)

    Hi

    Glad you’ve got it up and running!

    At the moment, event tracking is not a feature of this plugin, you need to manually add a small piece of JavaScript yourself.

    The reason for this is that events can cover such a huge range of possibilities (sign-ups, payments, watching videos, purchases, etc), I’m not sure there will ever be a way this plugin could work with every possibility out of the box.

    I am looking into adding a framework for events (possibly as a premium add-on), but for more complex scenarios it is likely you will still need to add some custom code to your site.

    For now, if you are familiar with JavaScript, you can use the following code whenever an event occurs that you wish to track:

    <script type="text/javascript">
      Intercom('trackEvent', 'your-event-name-here');
    </script>

    All the best
    Simon

    I’m not familiar with JavaScript. However, I’m really good with copy and paste.

    From looking at what you’ve typed, the only thing I would need to replace are the ‘your-event-name-here’ words correct?

    And secondly, where might I actually paste this?

    J.

    One more thing…

    Does this plug in work with custom attributes, or are we in the same boat there as well?

    J.

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    Yes, custom user attributes are supported, please see the FAQ items about them.

    The event JavaScript needs to fire whenever your event happens, so I can’t give you an exact answer as it depends on your event.

    Excellent. And for some reason, the Intercom app has stopped updating the Last Seen variable. I asked Intercom and they weren’t sure, so now I’m asking here.

    J.

    Is there a conflict with the plugin and their newly released Acquire?

    I’m trying to guess at why things might not be working.

    J.

    Here’s what Intercom just told me:

    Ah, I see what the problem is here.

    So to start using Acquire you’ve just removed the user data from the settings in your wordpress plugin?

    Unfortunately we don’t maintain the wordpress plugin, so we haven’t been able to update it for the Acquire launch.

    I would recommend resetting your WP plugin to how you had it before, setting it to not track your homepage and then just embedding the intercomSettings javascript directly onto your homepage directly:

    “I deleted the script he gave me for obvious reasons. If you need it to help resolve this please let me know.”

    There doesn’t seem to be a built in way to track both signed in users & acquire users via the WP plugin.

    Sorry about that.

    Thanks,
    Austin

    PS: It should be noted that I did nothing to the settings of the plugin because I don’t possess the technical skill to do so.

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    I’m afraid ‘Acquire’ is not something I’m familiar with, or something that I’ve had any correspondence from Intercom about. I will have to find time to look into it, I’ll try to do that over the weekend.

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    A quick update: I’m arranging a Skype meeting with Intercom next week to discuss this and other features, will update you here after that.

    Any update on this?

    Plugin Author Simon Blackbourn

    (@lumpysimon)

    Unfortunately not – I didn’t hear back from Intercom after their initial contact and I have been too busy too follow up. I will try again when I have some more time available.

    All the best
    Simon

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How do I track events?’ is closed to new replies.