Has anyone moved their GA tracking to the back end...
# suitecommerce
c
Has anyone moved their GA tracking to the back end? Seems like it's not that hard to pull off.
d
What do you mean by moving it to backend? Server side tracking?
✔️ 1
No, not yet. Are you planning to do so? happy to chat about it!
c
Maybe. There are so many ad blockers that we estimate losing about a quarter of all events.
With all the privacy concerns, it seems like front end tracking will eventually be too cumbersome.
m
have you considered deploying a reverse proxy to GA? I've successfully used AWS CloudFront with Posthog to do something similar. Where the CloudFront distribution uses Posthog as its origin server.
d
have you compared your number of transactions in GA4 with the number of transactions in NetSuite? Do you see any discrepancies? I thought about this a long ago but haven't seen a situation where I seem to be loosing more than 1% (I say compare transactions because that's the only number that represents an apples to apples comparison between GA4 and NS) @Chris
btw I can't perceive how would you capture certain events from the backend. Server side tracking is... server side (NetSuite is not a "server"). In NetSuite you wouldn't have access to things like the pageviews or custom events that happens on SuiteCommerce. You would have access to the ones that made it to the backend (IE transactions, customers)
@Mike Herrera that's an interesting idea, have you noticed more events being tracked after implementing it?
m
Great question @Diego Gallo. Since it was so simple to deploy, I configured the reverse proxy with the initial deployment. So while I don't have a before/after comparison, I can confirm that I have never suspected that we have gaps in our expected data.
1
d
that's a good insight, Mike! Thanks. I have various sites where I can run a before/after so once I have results, I'll let you all know @Mike Herrera
btw could you share your configuration for reverse proxy? Are you doing it through CloudFlare?
m
I used AWS CloudFront and followed the Posthog guide. https://posthog.com/docs/advanced/proxy/cloudfront
1