Page 1 of 1

Updating Cart for GA4

PostPosted: Wed Jun 14, 2023 8:02 am
by Rgkopchak
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 - 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': '-/rYLxCO79t6wBEOWQ_eAD',
      'value': ss_ordertotal,
      'currency': 'USD',
      'transaction_id': ss_ordernum
  });
</script>

Re: Updating Cart for GA4

PostPosted: Thu Jul 27, 2023 2:42 pm
by cyoung
I believe there is more involved. Here is some additional information about how you can more easily integrate google analytics into ShopSite.
https://www.shopsite.com/blog/2023/06/google-analytics-4-in-shopsite/