Updating Cart for GA4

Questions and answers about ShopSite Custom Templates

Updating Cart for GA4

Postby Rgkopchak » 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 - 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>
Rgkopchak
 
Posts: 61
Joined: Wed Jul 28, 2010 7:45 am
Location: Missouri

Re: Updating Cart for GA4

Postby cyoung » Thu Jul 27, 2023 2:42 pm

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


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron