Answer the question
In order to leave comments, you need to log in
Will the Google goal work?
Good afternoon!
The site has a form. There is a task to set a goal for Google to send it. Setting the target on the submit button via onClick is not an option, because not always pressing the button sends the form (mandatory fields may not be filled in or the captcha may be incorrectly entered).
Added a condition in the site template:
{if $smarty.request.estimate_submit}
<script type="text/javascript">
_gaq.push(['_trackPageview','/virtGA/poluchit_kp_ok']);
</script>
{/if}
Answer the question
In order to leave comments, you need to log in
Yes, it should work. You can check it by pulling utm.gif in the developer console.
Or through the Google Tag Assistant extension, you should also be able to see what worked
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question