Skip to content

Track action buttons on Paper, Multimedia, and Exam Details pages #636

Description

@sanaderi

We need to track clicks on all action buttons (download, start quiz, payment, etc.) on the following pages:

  • Paper Details
  • Multimedia
  • Exam Details

Each button should be tracked individually so we can analyze user interactions in Google Analytics.

Tasks

  1. Update HTML/JS code:

    • Add a unique id or data-action-id to each button on these pages.
  2. Set up tracking in Google Tag Manager:

    • Create a click trigger for all action buttons.
    • Send events to Google Analytics (GA4).
    • Event Name: action_click
    • Include parameters like button_id, button_text, and page_path.
  3. Testing:

    • Test the tracking in a separate/test GA4 account before publishing to the live account.
    • Verify events fire correctly for all button types (JS-triggered, page redirects, payment flows, etc.).

Acceptance Criteria

  • Each action button on these pages has a unique identifier.
  • Button clicks are tracked individually in GA4.
  • Events are successfully tested in a separate/test analytics account.

@Matinj031

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions