1. Home
  2. Docs
  3. GA4Admin
  4. Functionalities
  5. Comments Changes

Comments Changes

The GA4Admin plugin for WordPress enables you to monitor and analyze changes made to comments on your website, providing valuable insights into user interactions with comments. Comments play a crucial role in user engagement and feedback, and understanding their status changes is essential for managing user-generated content effectively. Below are the key comment-related events tracked by the plugin:

Event Name: ga4admin_comment_approved

  • Trigger: This event is triggered when a comment is approved by an admin.
  • Event Parameters:
    • ga4admin_action: Same as event name.
    • ga4admin_domain: The domain of the website.
    • userType: The user’s role(s).
    • user_id: The user’s ID.
    • username: The user’s username.
    • comment_id: The ID of the approved comment.
    • post_id: The ID of the post to which the comment is associated.
    • post_title: The title of the post.
    • post_category: The categories of the post (if applicable).

Event Name: ga4admin_comment_unapproved

  • Trigger: This event is triggered when a comment is unapproved by an admin.
  • Event Parameters:
    • ga4admin_action: Same as event name.
    • ga4admin_domain: The domain of the website.
    • userType: The user’s role(s).
    • user_id: The user’s ID.
    • username: The user’s username.
    • comment_id: The ID of the unapproved comment.
    • post_id: The ID of the post to which the comment is associated.
    • post_title: The title of the post.
    • post_category: The categories of the post (if applicable).

Event Name: ga4admin_comment_trashed

  • Trigger: This event is triggered when a comment is moved to the trash.
  • Event Parameters:
    • ga4admin_action: Same as event name.
    • ga4admin_domain: The domain of the website.
    • userType: The user’s role(s).
    • user_id: The user’s ID.
    • username: The user’s username.
    • comment_id: The ID of the trashed comment.
    • post_id: The ID of the post to which the comment is associated.
    • post_title: The title of the post.
    • post_category: The categories of the post (if applicable).

Event Name: ga4admin_comment_spammed

  • Trigger: This event is triggered when a comment is marked as spam.
  • Event Parameters:
    • ga4admin_action: Same as event name.
    • ga4admin_domain: The domain of the website.
    • userType: The user’s role(s).
    • user_id: The user’s ID.
    • username: The user’s username.
    • comment_id: The ID of the spammed comment.
    • post_id: The ID of the post to which the comment is associated.
    • post_title: The title of the post.
    • post_category: The categories of the post (if applicable).

Event Name: ga4admin_comment_untrashed

  • Trigger: This event is triggered when a comment is restored from the trash.
  • Event Parameters:
    • ga4admin_action: Same as event name.
    • ga4admin_domain: The domain of the website.
    • userType: The user’s role(s).
    • user_id: The user’s ID.
    • username: The user’s username.
    • comment_id: The ID of the restored comment.
    • post_id: The ID of the post to which the comment is associated.
    • post_title: The title of the post.
    • post_category: The categories of the post (if applicable).

Effective tracking of comment-related events is crucial for managing user engagement and feedback on your WordPress website. With these events and their associated parameters, you can gain insights into how comments are moderated and their impact on user interaction.

How can we help?