Custom Events data
Custom events let you count anything ShortStack doesn't already track, such as how many people finished a quiz. Add a Log analytics event action to an Action Widget, and ShortStack counts every time it runs on your published campaign. See the counts on the Custom Events tab, under Manage → Analytics. It needs the Max plan.
What you can do with custom events
| To | Do this |
|---|---|
| Count something ShortStack doesn't track, such as quiz completions | Log an event from an Action Widget. |
| See how many times each event happened | Open the Custom Events tab. |
| Compare two events | Check the table below the graph, which has a row for each event. |
| Send campaign activity to Google Analytics or the Facebook Pixel instead | Use the Tracking Widget. See Which tool to use. |
Before you start
- Custom events need the Max plan. Action Widgets are on every plan, but the Log analytics event action and the Custom Events tab are Max features. On other plans, the action isn't offered.
- You set events up in the Campaign Builder, not in Analytics. The Custom Events tab only reports them. If it's empty, check your Action Widget.
- One action logs one event. To track several things, add a separate Log analytics event action for each, with its own Event value.
- Custom events stay inside ShortStack. They aren't sent to Google Analytics or the Facebook Pixel; the Tracking Widget does that.
- The Event value is the event's only name. Pick one you'll still recognize in six months, such as
quiz_completedrather thantest_1.
Log an event from an Action Widget
Custom events are an action in an Action Widget. These steps assume your campaign has an Action Widget with a WHEN trigger.
- Open the Action Widget's settings, and go to SETUP.
- Under WHEN, set the trigger, such as Widget labeled form-container is successfully submitted.
- Under THEN, click the blue + button. The Edit Action window opens.
- Under CATEGORY, choose Campaign.
- Under ACTION, choose Log analytics event. An Event value field appears.
- In Event value, type the name to record this event under.
- Click SAVE. The action shows in the THEN list as Log analytics event with value, followed by your value.
- Click SAVE AND EXIT, then publish your changes.
Examples
| What you want to know | THEN action | Event value |
|---|---|---|
| How many people finished the quiz | Quiz Answers Container is Shown/Visible | quiz_completed |
| How many people opened the rules before entering | Rules Text Widget is Shown/Visible | rules_opened |
| How many people reached page 2 of a multi-page form | Page 2 is Shown/Visible | form_page_2_reached |
The event is logged by the action, not the trigger, so add Log analytics event to the same THEN list as the action you want to count.
Values are recorded exactly as typed: quiz_completed and Quiz_Completed are two separate rows. Keep to one style across a campaign. Action labels make the widgets you're targeting easier to find.
Open the Custom Events tab
- Click Manage at the top, then Analytics, or go straight to the Analytics Manager.
- In the filters, choose your campaign.
- Set the date range you want to see.
- Click the Custom Events tab.
What's on the page
| Area | What it shows |
|---|---|
| Custom Events | Every event recorded, across all event values. |
| Unique Visitors | Visitors who fired at least one custom event. It counts people, not events: one visitor firing an event twice shows as 2 events and 1 unique visitor. |
| Custom Events Summary | A graph of events and unique visitors each day. Click a label to hide or show that line. |
| Table by Event Value | One row for each event value, with its own Events and Unique Visitors. Use it to compare events. |
To get the graph's data as a spreadsheet, click the hamburger icon (≡) on the graph and download a CSV. To save a report, click Actions at the top right, then Export PDF.
What happens when you change things
| If you | Then |
|---|---|
| Delete the action, or the whole Action Widget | No new events are logged. Events already recorded stay in the report. |
| Change the action the event is attached to on a published campaign | Counts from before and after the change are mixed in one row, so they can be misleading. For example, showing Container_12 instead of Container_14. |
| Change the Event value | A new row starts in the table. The old row keeps its counts. |
| Change the time zone in Analytics | Events can move to a different day. An event at 11 PM PDT may fall on the next day in another time zone. |
| Preview the campaign, or test it in the Builder | Nothing is recorded. Custom events are only recorded on the published campaign. |
If something goes wrong
| What you see | What to do |
|---|---|
| The tab is empty | Check you've chosen the right campaign and a date range that covers your test. Analytics opens on the campaign and dates you last used. |
| The tab is empty, though the campaign and dates are right | Check the Action Widget isn't inside a hidden container, and that its visibility isn't Inactive or limited by date, time or country. |
| The Action Widget is visible, but nothing is logged | Make sure the trigger fires: add a second action that does something visible, and test. Then check you clicked Publish Changes after your edits. |
| Some events appear and others don't | Actions run top to bottom. If a Redirect campaign action is above Log analytics event, the redirect can happen first. Drag the event above it. |
| Two events are counted in one row | They use the same Event value. Give each its own. |
| Events is much higher than Unique Visitors | People fired the event more than once, which is expected when a trigger can happen several times in a visit. |
| Unique Visitors looks wrong | Visitors are told apart by device fingerprint. On the Max plan, turning on Advanced data analytics makes this more accurate. |
| A new event hasn't appeared yet | Allow up to 15 minutes. Most events show within a few minutes. |
Which tool to use
| Tool | Use it when | Data shows in |
|---|---|---|
| Custom events | You want to count something ShortStack doesn't already report, inside ShortStack. | The Custom Events tab |
| Tracking Widget | You want campaign activity in Google Analytics or the Facebook Pixel, alongside the rest of your site. | Google Analytics or the Facebook Pixel |
| Clicks data | You want clicks on buttons and links. They're tracked automatically, with no setup. | The Clicks tab |
FAQs
Do custom events count toward entries, points, or votes?
No. Logging an event records a number in Analytics and nothing else. It does not create an entry, award points, or affect any other report.
Is there a limit on how many different event values one campaign can have?
No. Create as many events as you need.
If the same person triggers an event twice, does it count twice?
Yes. The Custom Events figure counts every time the action fires. Unique Visitors counts the people behind those fires, so two fires by one person show as 2 events and 1 unique visitor.
Can I delete custom event data?
No. Once logged, it stays in your campaign analytics and cannot be deleted.
Related resources
Was this helpful?
Thanks — that helps us decide what to fix next.
Sorry this missed. Tell us what you needed and we'll get you an answer — and fix the page.