Welcome to WebmasterWorld Guest from 54.166.222.116

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

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

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

5+ Year Member



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?
11:03 pm on Apr 26, 2010 (gmt 0)

5+ Year Member



grr.. wish I could edit the title =[
2:31 am on Apr 29, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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>
 

Featured Threads

Hot Threads This Week

Hot Threads This Month