Skip to content

Allow marking custom events as non-interactive #5295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

macobo
Copy link
Contributor

@macobo macobo commented Apr 8, 2025

  • Custom events can now be marked as non-interactive in events API and tracker script. Events marked as non-interactive are not counted towards bounce rate.
    • To track custom event in tracker, do plausible('custom event', { interactive: false })
    • In events API, set interactive parameter to false.
  • A session is now marked as a bounce if it has less than 2 pageviews and no interactive custom events.

Note that custom events configured via css can not be marked as non-interactive as they require the user to interact with the site.

Basecamp ref: https://3.basecamp.com/5308029/buckets/26383192/card_tables/cards/8450017341

Docs: plausible/docs#601

@macobo macobo force-pushed the non-interactive-events branch from b5261ca to 61fd348 Compare April 8, 2025 12:09
@macobo macobo force-pushed the non-interactive-events branch 3 times, most recently from 6678252 to d7a4e41 Compare April 8, 2025 12:16
@macobo macobo force-pushed the non-interactive-events branch from 015d5b8 to 0e90cb5 Compare April 9, 2025 05:31
@macobo macobo marked this pull request as ready for review April 9, 2025 05:36
@@ -87,23 +87,6 @@ defmodule Plausible.TestUtils do
{:ok, conn: conn}
end

def create_pageviews(pageviews) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants