Connect
1
Open your web stream
In Google Analytics, open Admin, then Data collection and modification, then Data streams, and choose your store’s web stream.
2
Copy the Measurement ID
It’s at the top of the stream details and starts with
G-.3
Create an API secret
In the same stream, open Measurement Protocol API secrets and click Create. Give it a nickname, such as Loveful, and copy the Secret value.
4
Paste both into Loveful and save
Enter them as Measurement ID and API secret. The secret is stored encrypted and only shown masked afterwards.
loveful_test, which you’ll find under Reports › Realtime. If Google refuses it, Loveful shows the reason.
The page also shows when the last event was sent. To stop sending, choose Disconnect.
Events
Saves use Google’s own
add_to_wishlist event and shares its share event, so GA4’s standard reports and audiences understand them. The others are Loveful’s own.
What each event carries
add_to_wishlistandwishlist_item_removed: the product as a GA4 item (item_idis the variant ID, plusitem_name,item_variantandprice),currency,value(the product’s price),product_idandwishlist_total_count.share:method(linkoremail),content_type(wishlist) anditem_count. The share link itself is never sent, because it opens the shopper’s wishlist for anyone who has it.wishlist_shared_view:item_count.wishlist_purchase:transaction_id(the order ID),currency,value(the wishlisted items’ total) and the wishlisted lines asitems, with their quantities and prices.
user_id.
Consent
Events are only sent for shoppers who have allowed analytics in your store’s cookie banner, and only when Google Analytics is already running on your store. Loveful reads the visit from Google Analytics’ own cookies, so without them there is nothing to link the event to.