ShakawatHub home

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

ShakawatHub red, black and white infographic. GA4 Privacy: Keep Personal Data Out of Events. A shop counter needs a sales total, not customer identity documents. Steps: Review event parameters; Check URLs and page titles; Remove personal data at the source. Branding: shakawathub.com.
Educational infographic by ShakawatHub. Select the image to view it full size.

A shop counter needs a sales total, not customer identity documents.

  1. Review event parameters.
  2. Check URLs and page titles.
  3. 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

Discuss your Google Ads or tracking project →

Step by step

  1. 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.

  2. 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.

  3. 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

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.