Updating Cart for GA4
Posted: Wed Jun 14, 2023 8:02 am
I am using a custom template, and I've gone through and updated the cart with the new code snippet from Google.
I have a question about updating the conversion metric though. Is it as simple as updating the AW-- to the the gtag number? Or is there more involved?
I have a question about updating the conversion metric though. Is it as simple as updating the AW-- to the the gtag number? Or is there more involved?
Code: Select all
<!-- Event snippet for Sales conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW--/rYLxCO79t6wBEOWQ_eAD',
'value': ss_ordertotal,
'currency': 'USD',
'transaction_id': ss_ordernum
});
</script>