Site logo

Archived topic

Use of hook for Google Analytics

7 replies · Started by Lucas on October 9, 2020

Viewing posts 1–8 of 8

Hi, I know there are already similar questions as mine, sorry for that in advance.

Is there any difference between adding the GA or FB Pixel using GP Hook instead of installing WooCommerce plugins that do that?

They offer a lot of options as what to track but I would prefer to have more control over it and just add it to wp_head and track everything, but I'm not sure if I would be losing something?

Thanks!

Thanks Leo, will do that.

No problem :)

Hi, I was using Tag Assistant extension in Chrome and recording the actions to compare both options, I found that when I add the tracking code in wp_head I'm not getting the same info as when using Woocommerce Google Analytics plugin.

Basically the difference is that when adding tracking code directly to wp_head I'm not able to track events such as clicks, just page views.

Do you know why that happens?

The Woo Google Analytics plugin does more than just add the GA Scripts to the head of the site. It includes triggers for the various events such as button clicks.

To do this without the plugin would require you to set those triggers and events in your Google Analytics setup.

Ok, nice to know that, thanks David, for now I will stick to Woo GA plugin so I can focus on other topics, later I might change the approach here.

Glad to be of help.

This archived topic is closed to new replies.