Updating Cart for GA4

Questions and answers about ShopSite Custom Templates
Post Reply
Rgkopchak
Posts: 61
Joined: Wed Jul 28, 2010 7:45 am
Location: Missouri

Updating Cart for GA4

Post 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 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>
cyoung
Posts: 146
Joined: Wed Nov 09, 2016 11:01 am

Re: Updating Cart for GA4

Post 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/
Post Reply