Skip to content

PRESS0-1996: Add Hiive events via HTML attributes#101

Merged
BrianHenryIE merged 6 commits intomainfrom
feature/PRESS0-1996-hiive-events-via-html-attributes
Apr 17, 2025
Merged

PRESS0-1996: Add Hiive events via HTML attributes#101
BrianHenryIE merged 6 commits intomainfrom
feature/PRESS0-1996-hiive-events-via-html-attributes

Conversation

@bradp
Copy link
Copy Markdown
Contributor

@bradp bradp commented Sep 16, 2024

Proposed changes

This change allows for adding HTML attributes to an element and will send an event to Hiive when the element is clicked.

The attributes you can add are:

  • data-nfd-click Required. Will be used as the key if no other attributes are used.
  • data-nfd-event-key Optional. Used as key if present.
  • data-nfd-event-category Optional. Used as category if present.
  • data-nfd-brand Optional. Used to override brand if present.
  • data-nfd-queue Optional. Will set the event to be queued.
  • data-nfd-product-id Optional. Used for marketplace items.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@circlecube
Copy link
Copy Markdown
Member

@wpscholar and @bradp - where are we with this? Does it still need work or just approval/testing? I see it is related to a marketplace PR too, anything I can do to help wrap them up? Is there an associated jira ticket for any more context?

@wpscholar
Copy link
Copy Markdown
Member

@circlecube Yes, I was just looking at this today. There are some JIRA tickets on my plate to follow up on this.

circlecube
circlecube previously approved these changes Apr 14, 2025
…tributes

* main: (113 commits)
  Prevent fatal error if WC()->cart is null or not an instance of WC_Cart
  Pin full length commit SHA for 3rd party actions.
  version bump to 2.6.11
  Register hooks of Commerce Listener only when WooCommerce is enabled
  Update static site-classification-data-to-0.0.6
  Add checks for Commerce Listeners hooks that requires WooCommerce
  update plugin paths in test files
  swap bluehost repo path with new one
  Version updated 2.6.9 => 2.6.10
  Remove mock for `get_current_user_id()`
  Mock get_current_user_id() and expect status to equal connected
  Set REMOTE_ADDR
  Ensure we properly handle status changes
  Exclude phpunit cache
  Return value and add return type
  Use pre_update_option hook
  update test workflow bluehost plugin path
  bump version to 2.6.9
  add version bump script and command
  ensure capabilities is_array
  ...
@circlecube
Copy link
Copy Markdown
Member

I got this updated from main and fixed a fatal error where the container wasn't being passed to the constructor. Seeing some failing Unit tests on it though, @wpscholar can you take a look when you get a chance?

@github-actions
Copy link
Copy Markdown
Contributor

@BrianHenryIE BrianHenryIE merged commit 1b6252f into main Apr 17, 2025
12 of 13 checks passed
@BrianHenryIE BrianHenryIE deleted the feature/PRESS0-1996-hiive-events-via-html-attributes branch April 17, 2025 20:00
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.

4 participants