Solved

Google Analytics tracking with a Coldfusion Fusebox site

Posted on 2007-11-26
2
612 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
Http to https for only 2 sites and have the rest of the website http 13 50
Script 12 153
AWS Advice on using WHM/cPanel 1 73
listing all functions in JavaScript 19 200
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

10 Experts available now in Live!

Get 1:1 Help Now