D
D
Dmitry Fedorov2016-02-26 12:14:50
Google Analytics
Dmitry Fedorov, 2016-02-26 12:14:50

Goal not working in Google Analytics?

Good morning, guys, I'm already tired of tormenting myself with setting goals in analytics.
There is an LP
on it posted the code of Universal Analytics in the form:

<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-XXXXXX-X', 'auto');
    ga('send', 'pageview');
    setTimeout("ga('send','event','Engaged users','More than 15 seconds')",15000);
  </script>

The last line in order to have an adequate percentage of failures.
I format the link as follows:
<a href="#popup-zakaz-form" class="popup-contact" data-bname="Букет «Крем-брюле»" data-bimg="images/buket/5.jpg" data-bprice="940"  onClick="ga('send', 'event', 'buket', 'view', 'Букеты', 'Букет «Крем-брюле»');">

This Popup is a Bootstrap window, I pass data attributes to display the necessary data.
At the end of onClick I hang an indication that this is the goal for analytics.
In the Google Analytics account itself, I made the following settings:
prntscr.com/a83kw1
When you click on an order, nothing is displayed, there are orders, but the conversion is 0% according to statistics.
Please, help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2016-02-26
@dimonchik2013

set up any triggered target, and then set up this one in the same way

J
Jacob, 2016-02-26
@Logrise

You have Value = Creme Brulee Bouquet. I'm not sure, but it seems to me there should be a number.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question