Add a `client_purchase` event
Some stores may wish to add a client_purchase event that fires on the client in addition to the server-side purchase event tracked by default with SlideRule Analytics. Here are isntructions for adding it using Shopify's Custom Pixel's feature.
Note: at this time only store owner's can add Custom Pixels.
- Navigate to your store's Settings and select Customer events
2. Click Add custom pixel
3. Name the pixel "ga4 client_purchase" and cick Add pixel
4. Copy the below code
5. Paste the code over the existing text in the "Code" section. Then replace both instances of the "G-XXXXXXX" with your data stream's Measurement ID.
6. Hit Save.
You'll now see client_purchase events show up in GA4.