Solved

Google Analytics tracking with a Coldfusion Fusebox site

Posted on 2007-11-26
2
601 Views
Last Modified: 2013-12-24
I'm about to take on a project of integrating Google Analytics within a Fusebox site.  I'm not a fusebox programmer but I do have a lot of experience with ColdFusion and Google Analytics.  Usually, I'd put the tracking code right before the </body> tag but I'm not sure how this will look in Fusebox since it's all separate pages.  

On the site the page for the whole site is /index.cfm?etc but if i look at different products/pages the title does change.  I haven't had a chance to assess the site just yet.  
0
Comment
Question by:tags266
2 Comments
 
LVL 14

Accepted Solution

by:
Scott Bennett earned 500 total points
ID: 20359827
I am not really a fusebox guy either but I'll put my $0.02 in anyways. I do know that fuse box uses index.cfm for everything and then passes url variables like FuseAction to tell the index.cfm what to do, I believe the framework calls for a single template to generate the footer. Because all the requests go to the same template, you will probably want to pass fake url names into your urchinTracker() function so you can easily distinguish which page the user was viewing. the FuseAction variable may be the best variable to use for this. Something like:

<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "??-???????-?";

urchinTracker('#url.fuseacion#');
</script>


It may be a bit more complicated than I think since I'm not a fusebox guy but this is pretty close to what you will end up having to do.
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 20369159
I'm more of a fusebox guy than a google Analytics guy.. so maybe together we can get the answer :)

As bennet said, there is a single or shared footer.  You can set a request (global) variable in each page to specify what should be included in the footer.   I suspect this is how the title is getting set, a global variable is set for each page and in the header it uses that variable to display various titles.


0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
remove Handler and Add Handler for one file 3 39
website does not load without www 12 70
503 Service Unavailable Error for a service in IIS 7.5 2 108
Web Site Hosting 10 78
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A short film showing how OnPage and Connectwise integration works.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now