-
Notifications
You must be signed in to change notification settings - Fork 59
feat(data-events): track content gate interactions #2740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
leogermani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works great!
One thing I noticed is: After I had 2 successful form submissions (one via registration and one product purchase), I noticed that the product_id parameter appears to have two entries with the product ID (where it should be only one)
This might be just a glitch of the Realtime Report... I think to confirm it we'll need to look at how the data looks in BigQuery...
But maybe if we simply didn't sent the parameter when they are empty, instead of sending empry strings? WDYT?
|
The 2 events with |
# [2.12.0-alpha.1](v2.11.3...v2.12.0-alpha.1) (2023-11-30) ### Bug Fixes * **checkout:** move stripe's cover fee placement ([#2767](#2767)) ([5f8b539](5f8b539)) * **data-events:** no longer use ActionScheduler for dispatches ([#2755](#2755)) ([975ab96](975ab96)) * **metering:** restrict comments on gated content ([#2751](#2751)) ([1bfc6f0](1bfc6f0)) * **recaptcha:** refresh token on checkout error ([#2769](#2769)) ([f22e8bd](f22e8bd)) ### Features * add filters for assets enqueueing ([#2768](#2768)) ([fcad059](fcad059)) * **authentication:** rate limit magic links and OTP generation ([#2765](#2765)) ([1252515](1252515)) * **campaigns:** mark duplicate segments ([cb5b527](cb5b527)) * **data-events:** track content gate interactions ([#2740](#2740)) ([298fd7c](298fd7c)) * **donations:** disable coupons for donation checkout ([#2770](#2770)) ([6051429](6051429))
|
🎉 This PR is included in version 2.12.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [2.12.0](v2.11.6...v2.12.0) (2023-12-11) ### Bug Fixes * **checkout:** move stripe's cover fee placement ([#2767](#2767)) ([5f8b539](5f8b539)) * **data-events:** no longer use ActionScheduler for dispatches ([#2755](#2755)) ([975ab96](975ab96)) * **metering:** restrict comments on gated content ([#2751](#2751)) ([1bfc6f0](1bfc6f0)) * **recaptcha:** refresh token on checkout error ([#2769](#2769)) ([f22e8bd](f22e8bd)) ### Features * add filters for assets enqueueing ([#2768](#2768)) ([fcad059](fcad059)) * **authentication:** rate limit magic links and OTP generation ([#2765](#2765)) ([1252515](1252515)) * **campaigns:** mark duplicate segments ([cb5b527](cb5b527)) * **data-events:** track content gate interactions ([#2740](#2740)) ([298fd7c](298fd7c)) * **donations:** disable coupons for donation checkout ([#2770](#2770)) ([6051429](6051429))
|
🎉 This PR is included in version 2.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

All Submissions:
Changes proposed in this Pull Request:
1200550061930446-as-1205734635694818
Creates
gate_interactiondata events with the following schema:gate_post_idintactionstringseen,form_submission_received,form_submission_successorform_submission_failureaction_typestringpaid_membershiporregistration. Not applicable whenactionisseenrefererstringorder_idintaction_typeispaid_membershipproduct_idintaction_typeispaid_membershipamountfloataction_typeispaid_membershipcurrencystringaction_typeispaid_membershipTo allow tracking form interactions inside the gate, a script injects a hidden
memberships_content_gateinput to forms inside the gate. This is passed by the reader registration or the modal checkout logic so it can finally get picked up by the data event listeners.It also implements the integration with the ga4 connector, which will include additional parameters to the GA event:
logged_in,is_reader, andemail_hash.How to test the changes in this Pull Request:
ga4_measurement_idandga4_measurement_protocol_secretconfigurednp_gate_interactionevents:seenandform_submission_receivedandform_submission_successwithaction_typeset toregistrationand the correctrefereraction_typeispaid_membershiporder_id,product_id,amountandcurrencyOther information: