F
F
feudoroff2014-09-15 01:08:46
HTML
feudoroff, 2014-09-15 01:08:46

How to set up a conversion in Universal Analytics?

Universal Analytics does not count the conversion on the website in any way. I screwed the code to the button, but still there is no information on the goals. Tried to set up both events and virtual pages.
Here is the button code:

<button type="submit" onClick="ga('send', 'pageview', '/virtual/podtverdit'), ga('send', 'event', 'Knopka', 'Podtverdit');" 
 class="btn btn_start wow flipInX" data-wow-delay="1.4s" data-wow-duration="0.2s" id="contact_submit" 
 data-complete-text="Отправлено!" data-error-text="Попробуйте снова">Отправить</button>

This is how the event setup in UA
PkOPo.jpg
looks like This is how the virtual page setup in UA looks like
8L3uQ.jpg

Answer the question

In order to leave comments, you need to log in

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

Between
ga('send', 'pageview', '/virtual/podtverdit')
and
ga('send', 'event', 'Knopka', 'Podtverdit')
There should be a semicolon, not a comma - then it should work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question