We’re overhauling the custom GA events we integrated into Newspack sites since late 2023. This overhaul simplifies the number of events we send, standardizes most of the event parameters sent with different events, and should improve the accuracy and usability of these analytics going forward.
Note that to use these events, you will still need to connect your site to the Google Analytics API. Sites that have already completed this connection will not need to take any further action.
What’s changing
Deprecated events: These events will no longer be sent:
np_donation_new– Can now be tracked vianp_modal_checkout_interactionwith anactionparam ofform_submission_successandaction_typeofdonation.np_donation_subscription_cancelled– Deprecated and not replaced; may be reinstated in the future.np_newsletter_subscribed– Deprecated and not replaced; may be reinstated in the future.
Events with new/updated event parameters: These events describing reader funnel entry and early funnel activity are already being sent by Newspack sites and will continue to be sent, but with improved event parameters and trigger accuracy:
np_gate_interaction- The
action_type=paid_membershipparam is now replaced byaction_type=checkout_button, for better consistency withnp_modal_checkout_interactionevents. - Event params related to donation and non-donation products more closely match those sent with
np_modal_checkout_interactionevents. - Events with
action=form_submission_successare no longer sent. Instead, to track conversions starting fromnp_gate_interactionevents, look fornp_reader_registered,np_reader_logged_in, andnp_modal_checkout_interactionevents with a matchinggate_post_idparam. - Boolean-style params describing the purpose of the content gate have been expanded upon and improved for accuracy. Note that these params describe whether the element was actually visible to the reader at the time of the event, not just that it exists inside the gate’s content (as elements can be hidden by conditional logic):
gate_has_donation_block: Sent if the content gate was showing a Donation block at the time the event was triggered.gate_has_registration_block: Sent if the content gate was showing a Reader Registration block at the time the event was triggered.gate_has_checkout_button: Sent if the content gate was showing a Checkout Button block at the time the event was triggered.gate_has_registration_link: Sent if the content gate was showing a link to open the reader registration modal at the time the event was triggered.gate_has_signin_link: Sent if the content gate was showing a link to open the reader sign-in modal at the time the event was triggered.
- The
np_reader_registered- Now includes
newspack_popup_idorgate_post_idparams if the registration started from inside a Newspack Campaigns prompt or content gate, respectively.
- Now includes
np_reader_logged_in- Now includes
newspack_popup_idorgate_post_idparams if the login started from inside a Newspack Campaigns prompt or content gate, respectively. - New param
login_methodindicates the method used to log in (auth modal, magic link, or “Sign in with Google” SSO button).
- Now includes
Prompt interaction events: Events with an event name of np_prompt_interaction are largely unchanged and will continue to be sent as described in Help site documentation.
Transactional events: Events with an event name of np_modal_checkout_interaction can be used to track interactions with Newspack’s streamlined modal checkout experience, from transaction start to dismissal or completion. These events include params that connect them to events that started with np_gate_interaction or np_prompt_interaction events, allowing you to build a complete picture of readers’ journeys through the funnel all the way to successful conversion. Relevant funnel params:
- Now includes
newspack_popup_idorgate_post_idparams if the transaction started from inside a Newspack Campaigns prompt or content gate, respectively. action_typeparams allow you to connect transactional events to other event types with matchingaction_typevalues ofdonationorcheckout_button.- Transaction detail params offer additional info on the transaction itself:
amountaction_typecurrencyproduct_idproduct_typerecurrencevariation_id(only ifis_variable)