homepage Welcome to WebmasterWorld Guest from 174.129.103.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Google Analytics - How do I set up goals dynamic pages?
steveonz




msg:4122532
 11:02 pm on Apr 26, 2010 (gmt 0)

Hello there,


I have a signup page which also loads the thank you page in the same url... www.mysite.com/Signup.php is also the thank you page.

Google say:

Identical URLs across multiple steps

You may also wish to track visitors' progress through a funnel which has the same URL for each step. For example, your sign up funnel might look like this:
Step 1 (Sign Up): www.mysite.com/sign_up.cgi
Step 2 (Accept Agreement): www.mysite.com/sign_up.cgi
Step 3 (Finish): www.mysite.com/sign_up.cgi
To get around this, you can call the _trackPageview function within each step (probably within an onload event), as shown below.
<google code>
Then, set up each step of your funnel to be:

<google code>
The path/filename argument need not represent an existing path or filename. The argument to _trackPageview simply provides a made-up pagename to which Google Analytics can attach pageviews.


But I reallly do not understand what to do here, I put this in my code and setup the goal...

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1520030-1";
urchinTracker();

pageTracker._trackPageview("/funnel_G1/signup.html");

</script>


But it did not work =[

What should I be doing?

 

steveonz




msg:4122536
 11:03 pm on Apr 26, 2010 (gmt 0)

grr.. wish I could edit the title =[

dickbaker




msg:4124123
 2:31 am on Apr 29, 2010 (gmt 0)

You need to create the other page(s) in your funnel tracking, with the thank you page as the goal. The intermediate pages would look something like what's below, which my script:

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript"></script>
<% if request.form("mode")="" then %>
<script type="text/javascript">_uacct = "UA-12345"; urchinTracker("/funnel_1/cart.htm");</script>
<% elseif request.form("mode")="checkout" then %>
<script type="text/javascript">_uacct = "UA-12345"; urchinTracker("/funnel_1/customer_details.htm");</script>
<% elseif request.form("mode")="go" AND checkIntOptions=TRUE then %>
<script type="text/javascript">_uacct = "UA-12345"; urchinTracker("/funnel_1/payment_details.htm");</script>
<% end if %>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved