How can I use the “Event” condition in my workflows?

Access to this feature is only available in certain accounts. Please bear with us as we’re working on bringing it to everyone.

Events track and profile subscribers based on their interaction with your website. Events have attributes and they can track specific behaviors, including their timing and frequency.

Where can I find and manage Events in GetResponse?

To find the Events section, go to Menu > Automation > Events.

What do I need to track Events on my website?

An event can be registered by JavaScript tracking code embedded on your website. To track events you will need to add the following JavaScript code snippet to your website source code:

(function(i, s, o, g, r, a, m){
i['__GetResponseAnalyticsObject'] = r;

i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments);
a = s.createElement(o);
m = s.getElementsByTagName(o)[0];a.async = 1;a.src = g;m.parentNode.insertBefore(a, m);
})(window, document, 'script', '{getresponse-id}', 'GrTracking');

As {getresponse-id} you need to set “grid” value that can be obtained from GetResponse API 3.0. This grid value may also be taken from JavaScript code description that shows up when eCommerce elements are used in the Marketing Automation editor.

Note: If you direct people to your pages using message links in your newsletters, the JavaScript code snippet you pasted into your page source code identifies them automatically. If your visitors come from other websites where they leave their email address — for example, form submission pages, newsletter sign-ups, registrations, logins, purchase page details — you need to include additional JavaScript code to pages where your customers leave their emails:

Script that identifies customers email

GrTracking(‘setUserId’, $customerEmail)


GrTracking(‘setUserId’, ‘’);

Script that tracks specific events and assigns them to the email

GrTracking(‘setEvent’, $customEventName, $customEventAttributes)


GrTracking(‘setEvent’, ‘myCustomEvent’, {‘visitTime’:(new Date).toISOString(), ‘rankNo’:‘123333’, ‘websiteName’:window.location.href, ‘isProspect’: ‘true’});


GrTracking(‘setEvent’, ‘myCustomEventWithoutAdditionParams’);

How do I create an event?

To create a new event go to Menu > Automation > Events > click on the Create event button. You will see the Create an event modal:

Create event

Give your event a name and click Create event button. You can assign up to 8 attributes to your event. To do it, click on Add and define event attributes. You have 4 types of attributes to choose from:

  • Number
  • Text
  • True or false
  • Date
Event attributes

How do I use the Event condition in a workflow?

To include the condition in your workflow, follow these steps:

  1. Drag and drop the Event condition to the workspace.
  2. Click the element to open the Properties tab.
  3. From the dropdown list, select the event you want to track.

    Define event

Use the additional options to:

  • Define the attributes you want to track. If you don’t turn this one on, we will track every event with a matching name.
  • Run the condition multiple times for the same contact.

Note: Event name and attributes that you are passing from your website must exactly match the values in your GetResponse Events.