Hi All
I am looking into ways to get GA4 and Google Ads to do better tracking. I do get purchases but GA4 is not seeing them and doesn't understand them. So I feel like this is something we all could do better at- or just me
Thanks for sharing your insight into this tricky and evolving setup as Google changes so darn fast.
Conversion tracking GA4
-
- Phoca Enthusiast
- Posts: 51
- Joined: 14 Nov 2022, 12:04
- landed
- Phoca Professional
- Posts: 121
- Joined: 15 Sep 2023, 10:51
Re: Conversion tracking GA4
There is no documentation so I am wondering if it works with GA4. I have looked through the code.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Conversion tracking GA4
This is the base plugin which tracks only orders, following plugin should be more advanced:
https://www.minijoomla.org/cs/joomla-ro ... phoca-cart
but no idea if it is still active
Jan
https://www.minijoomla.org/cs/joomla-ro ... phoca-cart
but no idea if it is still active
Jan
If you find Phoca extensions useful, please support the project
- landed
- Phoca Professional
- Posts: 121
- Joined: 15 Sep 2023, 10:51
Re: Conversion tracking GA4
Thanks Jan.
I'd maybe like to understand how I can achieve it myself. I would want to just track orders which you say the other one does and also track initiate checkout which is probably easy since its a page load and can be done without inserting a tracking code. Maybe add to cart there is the need to add something like this:
<!-- Event snippet for Phone call lead conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-yoyoyo',
'event_callback': callback
});
return false;
}
</script>
I'd maybe like to understand how I can achieve it myself. I would want to just track orders which you say the other one does and also track initiate checkout which is probably easy since its a page load and can be done without inserting a tracking code. Maybe add to cart there is the need to add something like this:
<!-- Event snippet for Phone call lead conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-yoyoyo',
'event_callback': callback
});
return false;
}
</script>
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Conversion tracking GA4
Hi, then you can just try to extend this plugin: https://www.phoca.cz/phocacart-extensio ... ion-plugin but for now I don't know the actual code which is valid for GA4
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 29
- Joined: 28 Jan 2016, 11:06
Re: Conversion tracking GA4
sorry but eshop solution without valid ga4 metrics is useless...
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Conversion tracking GA4
Then you have tree options:
- to ask the developer of the plugin if they have some new version
- or to write own plugin or improve the basic one
- or to use another ecommerce extension.
Unfortunately, I don't have any other clue advice here
Jan
- to ask the developer of the plugin if they have some new version
- or to write own plugin or improve the basic one
- or to use another ecommerce extension.
Unfortunately, I don't have any other clue advice here
Jan
If you find Phoca extensions useful, please support the project
- landed
- Phoca Professional
- Posts: 121
- Joined: 15 Sep 2023, 10:51
Re: Conversion tracking GA4
Jan perhaps look to charge more and then get more help to keep this great product going. I get the feeling of having to do it all yourself. I would happily pay for things if they are going to work.
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Conversion tracking GA4
Honestly, to create a project like this and maintain it completely for free is admirable. Thanks to Jan for being so patient with us who come here with ideas and expect him to make them as quickly as possible. And we are the ones making money from what Jan did for free. Especially when it comes to Phoca Cart.