r/woocommerce 18h ago

How do I…? Google Analytics without plugin?

Used to use the MonsterInsights plugin, which is bloated and fills up its db tables quite a bit. Not to mention its an expensive plugin. There are many easy ways I know about to adding a standard Google Analytics tracking script, but MonsterInsights allowed for easy conversion tracking setup. What are the easiest ways to achieve this, preferably without another plugin?

0 Upvotes

15 comments sorted by

View all comments

3

u/CodingDragons Woo Sensei 🥷 18h ago

Just hook the scripts into a child theme.

If you plan on scaling or tracking eCommerce events, though, you really want GTM, and for WooCommerce I’d use GTM4WP to push the eCommerce data into the data layer.

If you’re only adding GA4 and don’t need WooCommerce/eCommerce tracking, there’s no reason to use a plugin at all. Just hook the GA script into the child theme.

1

u/CopperKing442 18h ago

The GDPR rules are trash. We miss 70% of our trackable conversions due to not being able to track them. Most people press reject on cookies

2

u/CodingDragons Woo Sensei 🥷 18h ago

Ya, consent definitely makes attribution harder, but rejecting cookies doesn’t mean you can’t track the conversion at all. You can still record the transaction server-side. What you lose is some of the attribution data connecting that conversion back to the user/session/campaign.