Skip to content
Home » Blog » Is it possible to set up event tracking in GTM for GA4 but also use the out of the box GA4 set up in BigCommerce?

Is it possible to set up event tracking in GTM for GA4 but also use the out of the box GA4 set up in BigCommerce?

Yes, it’s possible to set up event tracking in Google Tag Manager (GTM) for GA4 and use the out-of-the-box GA4 setup in BigCommerce simultaneously. Here’s how to do it:

  1. Set up GA4 in BigCommerce: Follow the instructions provided by BigCommerce to set up GA4 ecommerce tracking for your store. This will allow you to track ecommerce events such as product views, add to cart, and purchases, using the out-of-the-box GA4 implementation.
  2. Set up GTM container: Set up a GTM container for your BigCommerce store if you haven’t already. This will allow you to track custom events that are not captured by the out-of-the-box GA4 implementation.
  3. Add GTM container code: In the BigCommerce admin panel, go to “Storefront” > “Script Manager”. Add the GTM container code to the “Footer Scripts” section.
  4. Create GA4 tag in GTM: In GTM, create a new GA4 tag for the custom event you want to track. For example, if you want to track clicks on a specific button, create a tag that fires on that button click.
  5. Add trigger: Add a trigger to the GA4 tag to specify when the tag should fire. For example, if you want the tag to fire when the button is clicked, create a click trigger that fires on that button.
  6. Preview and debug: Preview and debug your GTM container to ensure that the custom event is being tracked properly.

By following these steps, you can track both ecommerce events using the out-of-the-box GA4 implementation in BigCommerce, and custom events using GTM.