Forum Moderators: DixonJones

Message Too Old, No Replies

Google Analytics Dynamic Pages

How do I set up for dynamic pages?

         

NilPlethora

3:56 pm on Feb 16, 2006 (gmt 0)



I am not very familar with dynamic pages. Such as an include feature. I have Google analytics and it seems to be great, except I am unable to track past the point of the static pages. I am under the assumption that I need to put an incude command on the static pages. But again I am confused. Here is where I become confused. Do I add a include command such as:

<!--#include file="analytics.htm" --> to the static pages, directly before the </body> tag?

If so do I make the include file something like this:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-#*$!x-x";
urchinTracker();
</script>
and call it analytics.htm?

As you can tell, I am confused on how to accomplish this.

Any assitance would be greatly appricated.

Peter72

9:18 am on Feb 21, 2006 (gmt 0)

10+ Year Member



That sounds about right.
I think it would be a better choice to put the include in the top of the page instead, since then you will also count visitors that cancel loading a page halfway. Just after <head> might be a good choice.
Also, your server needs to support SSI (Server-Side Includes) to handle the <!-- #include ... --> stuff, but that is pretty standard.

treeline

11:20 pm on Feb 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can include it as any other include, like you are suggesting. What I did that was easier was to just insert it right before the </html> tag where the page is being created.

So, in one case there is a template read by the script where stuff gets filled in. Don't need an include, just enter the Analytics code near the bottom.

In the other, the entire page is generated on the fly. For this I have the Analytics code in the list of stuff getting spit out by the script.

biking4jesus

8:16 pm on Feb 28, 2006 (gmt 0)

10+ Year Member



i had contacted google and they sent me info on creating a custom filter for my analytics account.