How to perform the following command using gtag ? #41
Closed
patrickmonteiro
started this conversation in
General
Replies: 1 comment
-
To add values to the // Can be used on the server and client-side, but will only have an effect in the client
const { gtag } = useGtag()
gtag({ ecommerce: null }) Under the hood, the extracted Line 2 in 1af82b9 I hope that helps you going forward. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to run:
dataLayer.push({ ecommerce: null });
https://developers.google.com/analytics/devguides/collection/ua/gtm/enhanced-ecommerce?hl=pt-br#clear-ecommerce
But I still don't understand how to do this with gtag. Would it be an event?
Beta Was this translation helpful? Give feedback.
All reactions