VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: mieciow on April 28, 2023, 23:28:17 PM

Title: Google tag x Vm register new user
Post by: mieciow on April 28, 2023, 23:28:17 PM
Hi
I need to put a google tag that works when the page clicks register (on the page registration page).
How do I do that?

Thanks
Title: Re: Google tag x Vm register new user
Post by: pinochico on April 30, 2023, 22:49:43 PM
GTM have a lot of event for click by ID or class
Title: Re: Google tag x Vm register new user
Post by: mieciow on May 01, 2023, 13:41:14 PM
I need to put the tag on the register user button

<button name="register" class="btn-large waves-effect waves-light" type="submit" onclick="javascript:return myValidator(userForm,true);" title="Efetuar cadastro">Efetuar cadastro</button>

on the button where I need to put this code, there's a javascript, I don't know how to put the code here, or where to put it
<!-- Event snippet for CONTATO - CADASTROU SITE conversion page -->
<script>
  gtag('event', 'conversion', {'send_to': 'AW-11147908395/GntiCLyFrZoYEKu'});
</script>
Title: Re: Google tag x Vm register new user
Post by: pinochico on May 01, 2023, 19:20:23 PM
Why you don't read my first post carefoully and search on the google? :D
First try and second post your result.

maybe this?
https://www.youtube.com/watch?v=ghUwerH1fsw