P
P
pashabomber2014-09-18 12:31:39
Google Analytics
pashabomber, 2014-09-18 12:31:39

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}

Accordingly, this script is not displayed on the site by default in the code. But if the form was submitted, then there is a script in the code.
The question is the following. Does the presence of this code in the script imply that these goals in Google are gone? Or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Tsyplakov, 2014-09-25
@grimich

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 question

Ask a Question

731 491 924 answers to any question