Analytics
2.1K members online now
2.1K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Goal Conversion in Google Analytics

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have kept Goal tracking conversion code in Google analytics i.e Goal conversion. I have set up 5 days back. I am receiving leads but it is not tracking in Google analytics.

 
In Goals I have selected new goal in custom i have selected destinaiton and kept my thankyou page.
 
 
/thankyou.html
 
My website is 
 
1 Expert replyverified_user

Re: Goal Conversion in Google Analytics

Top Contributor
# 2
Top Contributor

Hi :-)
The google analytics tracking code should be before the closing </head> tag
and on the thankyou.html page, there are coding errors. the conversion script has is inside a css style tag

  </div>
   <style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.container{ max-width:600px; margin:0 auto;}
.dw-docs{color:#3399cc; text-align:center;  font-size:20px; display:block;}
h1{text-align:center; font-size:35px; line-height:normal}
h2{ text-align:center;}
img{ width:170px; height:auto; margin:0 auto; display:block;}
h1.new{background:#3399cc; color:#fff; padding:10px 20px;}
h1 strong{ color:#3399cc; font-weight:bold;}
@media (max-width: 640px) {.container{ max-width:440px;}}
@media (max-width: 480px) {.container{ max-width:90%;} h1{ font-size:25px;}h2{ font-size:20px;}}
<!-- Google Code for Girija Marvel Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 881112291;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "wM-WCLyoiWkQ4-mSpAM";
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/881112291/?label=wM-WCLyoiWkQ4-mSpAM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
</style>

should read as -

 

  </div>
   <style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.container{ max-width:600px; margin:0 auto;}
.dw-docs{color:#3399cc; text-align:center;  font-size:20px; display:block;}
h1{text-align:center; font-size:35px; line-height:normal}
h2{ text-align:center;}
img{ width:170px; height:auto; margin:0 auto; display:block;}
h1.new{background:#3399cc; color:#fff; padding:10px 20px;}
h1 strong{ color:#3399cc; font-weight:bold;}
@media (max-width: 640px) {.container{ max-width:440px;}}
@media (max-width: 480px) {.container{ max-width:90%;} h1{ font-size:25px;}h2{ font-size:20px;}}
</style>
<!-- Google Code for Girija Marvel Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 881112291;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "wM-WCLyoiWkQ4-mSpAM";
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/881112291/?label=wM-WCLyoiWkQ4-mSpAM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here