Google tracking, i cant track conversions properly

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Google tracking, i cant track conversions properly

Postby parfumylacno » Mon Jun 01, 2020 11:59 am

Hello, i have problem with conversions too. Please, can you help me with this?

web is https://www.parfumylacno.sk

I had Copy this code in my template index.php betwenn <body></body> = this was no problem

<!-- Global site tag (gtag.js) - Google Ads: 999981650 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-999981650"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'AW-999981650');
</script>


But them, I have to copy this code to thankyou page or something like this in OPC between <head></head and that i cant do, because i cant find something like thankyoupage of OPC component. = so I add this ID 999981650 to OPC Tracking - Adwords, but this is perhaps not right solution - There are still no conversions in adwords and analytics..



<!-- Event snippet for objednavka conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-999981650/_qI2CIayjgQQ0oTq3AM',
'value': 1.0,
'currency': 'EUR',
'transaction_id': ''
});
</script>

id OPC.png
id OPC.png (47.08 KiB) Viewed 4354 times

id OPC_analytics.png
id OPC_analytics.png (136.58 KiB) Viewed 4354 times


Please, can you help me how to corret set conversions - do I have to use code in templates and php (if yes, which and where :) ) or should i have use settings of OPC component (but how?)

Thank you very much
parfumylacno
 
Posts: 9
Joined: Thu Aug 08, 2019 7:36 pm

Re: Google tracking, i cant track conversions properly

Postby parfumylacno » Tue Jul 07, 2020 9:41 am

please, do you have any tutorial how to set properly Google Adwords tracking conversions? Thank you :)
parfumylacno
 
Posts: 9
Joined: Thu Aug 08, 2019 7:36 pm

Re: Google tracking, i cant track conversions properly

Postby admin » Fri Jul 17, 2020 1:24 pm

hello, please disable all Adwords tracknig plugins in OPC Tracking section since they are all deprecated now.

the Adwords tracking can be done either via GTM or Google Analytics section in OPC Tracking.

in very latest OPC (version 2.0.400 ideally) you can use:
Google Analitycs Tracking ID

insert GA IDs separated by comma, for example:
UA-xxx-1,UA-xxxx-1

remove all other analytics code form your site (from templates, plugins, etc... )

enable new "gtag" mode in OPC google Analytics tracking + mark it
"run on all pages" + product+category+cart page

set up order statuses for which GA will send order to Google (like confirmed )

set up your Adwords ID here and Adwords Conversion label:
adwords id: AW-xxxx
adwordd conversion labe: veHbCJKd29IBEITF3KsC

you can get these in your adwords conversion set up.

track add to cart = NO
type = Enhanced analytics
generate datalayer = disabled


after a few days you should see results in your Adwords/Ads and after a few hours your should see Ecommerce conversions in your Analytics.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x