• Resolved Ana?s

    (@sushi_bcn)


    Dear Inactive Logout Team !

    I am currently using the Inactive Logout plugin on my WordPress site, and I am interested in tracking user logouts automatically for analytics purposes.

    Could you please let me know if there is a built-in function or option in the plugin that allows for sending an event to Google Analytics 4 (GA4) whenever a user is logged out automatically by the plugin? If this feature is not currently available, do you have any recommendations on how I could implement this functionality?

    Thank you for your assistance!

    Best regards,
    Ana?s

Viewing 1 replies (of 1 total)
  • Plugin Author Deepen

    (@j_3rk)

    Hi @sushi_bcn

    GA4 currently cannot be configured through settings page at the moment so, you’ll need to add some js code to track custom events. The event you need to catch is?window.addEventListener(‘logoutSuccess’, handleLogoutSuccess); where, handleLogoutSuccess?is the callback function where you would add your campaign or event code.

    This event is only triggered when user inactive logout is a success.

    Please note that inactive logout version should be above or equal to 3.1.2 for this to work.

    Since you’ve reached out to us in email as well – Will mark this as resolved here. The above js event is reference to the future people incase they might need the same.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.