
Menu
Plan a data layer event with a developer
The data layer is a shared tray where a website leaves facts for tags. It lets the checkout report an order directly instead of a tag guessing from the colour of a button.
ShakawatHub · Visual guide 19
GA4 Privacy: Keep Personal Data Out of Events

A shop counter needs a sales total, not customer identity documents.
- Review event parameters.
- Check URLs and page titles.
- Remove personal data at the source.
Do not include names, email addresses, telephone numbers or other identifying form values in GA4 event parameters. Check URLs and page titles too.
ShakawatHub · shakawathub.com
Step by step
Write an event contract
For an accepted order list the event name, order ID, currency, total and item IDs. Mark which system owns each field.
Agree on timing
Ask the site to provide the event after the order is confirmed. In GTM read the values for that event with data layer variables.
Inspect a sample
Preview a test order, select its event and compare every field with the receipt. Test a second order to catch a value left over from the first.
A sample handoff
For a fictional test order use event = purchase, transaction_id = TEST-42, currency = USD and value = 29. Ask the developer where the items array comes from. If the checkout has no confirmed order number yet, it is too early to send this purchase.
A mistake to watch for
A value present on a later event may be missing when the purchase tag fires. Inspect the exact event that triggers the tag.
Should email addresses go in GA4 event fields?
Keep identifying information out. Use non-personal order and item identifiers.
Read the official documentation
Related guides
- Build your first GTM tag, trigger and variable
- Map browser and server events before adding server-side tagging
Working on a Search campaign or conversion tracking? Explore ShakawatHub’s services.
LET’S REVIEW YOUR NEXT STEP
Request a free Google Ads audit
Share your website and the campaign or tracking question you want to explore. ShakawatHub will review your enquiry and discuss the next step.