1. Home
  2. Docs
  3. GA4Admin
  4. Functionalities
  5. Post and Page Changes

Post and Page Changes

Understand how the plugin tracks posts and pages in WordPress along with event details:

Tracking Posts:

The GA4Admin plugin for WordPress offers comprehensive tracking of post-related events, providing valuable insights into user interactions with posts. These events are crucial for understanding user engagement with your content. Below are the key post-related events tracked by the plugin:

  1. Event Name: ga4admin_post_draft_saved
    • Trigger: This event is triggered when a new post draft is saved.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the post.
      • title: The title of the post.
      • type: The post type as “post.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  2. Event Name: ga4admin_post_published
    • Trigger: This event is triggered when a post is published.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the post.
      • title: The title of the post.
      • type: The post type as “post.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  3. Event Name: ga4admin_post_trashed
    • Trigger: This event is triggered when a post is moved to the trash.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the post.
      • title: The title of the post.
      • type: The post type as “post.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  4. Event Name: ga4admin_post_updated
    • Trigger: This event is triggered when an existing post is updated or modified.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the post.
      • title: The title of the post.
      • type: The post type as “post.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.

Tracking Pages:

The GA4Admin plugin also tracks user interactions with pages within your WordPress website. Pages are an essential part of your site’s content, and monitoring how users engage with them can offer valuable insights. Here are the events related to page tracking:

  1. Event Name: ga4admin_page_draft_saved
    • Trigger: This event is triggered when a new draft of a page is saved.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the page.
      • title: The title of the page.
      • type: The post type as “page.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  2. Event Name: ga4admin_page_published
    • Trigger: This event is triggered when a page is published.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the page.
      • title: The title of the page.
      • type: The post type as “page.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  3. Event Name: ga4admin_page_trashed
    • Trigger: This event is triggered when a page is moved to the trash.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the page.
      • title: The title of the page.
      • type: The post type as “page.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.
  4. Event Name: ga4admin_page_updated
    • Trigger: This event is triggered when an existing page is updated or modified.
    • Event Parameters:
      • ga4admin_action: Same as event name.
      • ga4admin_domain: The domain of the website.
      • id: The ID of the page.
      • title: The title of the page.
      • type: The post type as “page.”
      • userType: The user’s role(s).
      • user_id: The user’s ID.
      • username: The user’s username.

These events, with their respective parameters, are vital for understanding how admins interact with your WordPress posts and pages.

How can we help?