Search Engine Watch
SEO News

 

  #1  
Old 07-08-2008
DevilsApprentice DevilsApprentice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
DevilsApprentice is on a distinguished road
Google Analytics Conversion Code

I'm really struggling to get the tracking code for a conversion page right in Analytics.

I have a php page that is basically a form and on validation and sending of the form it inserts the analytics conversion code. The initial problem was that on completion of the form it doesn't go to a new URL.

I found some stuff on this in the help section and I have managed to come up with this but it still doesn't track it as a goal.

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview("/completed-application.html");
</script>

The _trackPageview part is meant to tell analytics to consider the page to be called 'completed-application.html' so that it can appear as a separate page for goal tracking purposes (as far as I understand and can be found at http://www.google.com/support/analyt...y?answer=55576

Anyone able to see where I am going wrong with this?
Reply With Quote
  #2  
Old 07-08-2008
AussieWebmaster's Avatar
AussieWebmaster AussieWebmaster is offline
Forums Editor, SearchEngineWatch
 
Join Date: Jun 2004
Location: NYC
Posts: 8,197
AussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant future
Re: Google Analytics Conversion Code

did you fill in the UA with your account number
Reply With Quote
  #3  
Old 07-08-2008
DevilsApprentice DevilsApprentice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
DevilsApprentice is on a distinguished road
Re: Google Analytics Conversion Code

Quote:
Originally Posted by AussieWebmaster View Post
did you fill in the UA with your account number
I know its something that needs checking but yes I did
Reply With Quote
  #4  
Old 07-08-2008
seomike seomike is offline
M·d_Rewrite Guru
 
Join Date: Jun 2004
Location: Dallas, Texas but forever a Floridian!
Posts: 627
seomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to beholdseomike is a splendid one to behold
Re: Google Analytics Conversion Code

make sure your script source is from
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
if your conversion page is https://
Reply With Quote
  #5  
Old 07-09-2008
DevilsApprentice DevilsApprentice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
DevilsApprentice is on a distinguished road
Re: Google Analytics Conversion Code

Quote:
Originally Posted by seomike View Post
make sure your script source is from
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
if your conversion page is https://
Unfortunately it isn't https - will be next week so I'll keep that in mind when changing.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Does Google Dominate The Internet? Dan01 Other Google Issues 13 10-14-2008 11:23 PM
Google to Share Your Data? Discovery Google AdWords 1 03-07-2008 03:33 PM
Why doesn't Adwords Help Us Generate Google Analytics Tags? sitecreations Google AdWords 2 06-26-2007 06:56 AM
Adding google tracking code to flash swf file alexc Web Analytics & Tracking 0 10-12-2006 10:37 AM


All times are GMT -4. The time now is 09:19 PM.