willsherwood
asked on
GA Google Analytics - top-level question for "e-commerce"
A client has the GA JS code inserted for analytics, and it has their UA-123456 acct number.
This HTML/JS snippet is on all their pages, including the one-page creditcard purchase page.
In addition on the creditcard purchase page, there are two additional snippets:
googleadservices.com...con version.js and a snippet containing a conversion_id number.
The above three snippets were provided by them for us to insert into the HTML.
they are now asking for e-commerce tracking. i'm not familiar with all the aspects of GA, and am wondering what is missing?
Below are the three snippets that exist.
<script>
(function(i,s,o,g,r,a,m){i ['GoogleAn alyticsObj ect']=r;i[ r]=i[r]||f unction(){
(i[r].q=i[r].q||[]).push(a rguments)} ,i[r].l=1* new Date();a=s.createElement(o ),
m=s.getElementsByTagName(o )[0];a.asy nc=1;a.src =g;m.paren tNode.inse rtBefore(a ,m)
})(window,document,'script ','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-nnnnnnn-1', 'theirDomain.com');
ga('send', 'pageview');
</script>
<!-- Google Code for subscription sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = nnnnnnnnnn;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxnnxxnnxxnn"; var google_conversion_value = 0; var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript"
src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt=""
src="//www.googleadservices.com/pagead/conversion/nnnnnn/?value=0&label=xxnnxxnnxx&guid=ON&script=0"/>
</div>
</noscript>
This HTML/JS snippet is on all their pages, including the one-page creditcard purchase page.
In addition on the creditcard purchase page, there are two additional snippets:
googleadservices.com...con
The above three snippets were provided by them for us to insert into the HTML.
they are now asking for e-commerce tracking. i'm not familiar with all the aspects of GA, and am wondering what is missing?
Below are the three snippets that exist.
<script>
(function(i,s,o,g,r,a,m){i
(i[r].q=i[r].q||[]).push(a
m=s.getElementsByTagName(o
})(window,document,'script
ga('create', 'UA-nnnnnnn-1', 'theirDomain.com');
ga('send', 'pageview');
</script>
<!-- Google Code for subscription sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = nnnnnnnnnn;
var google_conversion_language
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxnnxxnnxxnn"; var google_conversion_value = 0; var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript"
src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;"
src="//www.googleadservices.com/pagead/conversion/nnnnnn/?value=0&label=xxnnxxnnxx&guid=ON&script=0"/>
</div>
</noscript>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No thats about right. The last script should only be on the bit where they finish the transaction. Then you know if it is done. You need to update the value bits so you know how mush they spent etc (thats what I was talking about above)
ASKER
many thanks!
ASKER
the second and third only appear on the e-commerce page.
are you saying that ALL THREE need to be on every page in the website?
thanks!