Skip to main content
Participant
December 2, 2010
Question

Application.cfm and Google analytics

  • December 2, 2010
  • 1 reply
  • 989 views

I have a different folder that each one has its own "Application.cfm". I put the code for Google Analytics in the Application.cfm in each folder. All of them works fine except one folder that I used exactly same code but the Tracker code does not execute so it does not show the page in the report of Goggle analytics. Any suggestion?

    This topic has been closed for replies.

    1 reply

    Inspiring
    December 2, 2010

    When you do a View Source of the page in the browser, do you see the GA code?  If not, then you need to look at the relationship between the folder that your page is in, and that of the application.cfm file.  Any easy way to prove whether the application.cfm file is being executed is to put an HTML (not CF) comment line in it, then look in the View Source to see if the comment appears.

    If the GA code is in the View Source, then there must be an error in it somewhere.

    -reed

    Known Participant
    December 2, 2010

    Thanks for the quick reply, no the Google Analytics code is not in source code when I view source code on the Browser. But there is more code in Application.cfm that they are executing and I can see the result the only code that is not exexute is Google Analytics.

    ilssac
    Inspiring
    December 2, 2010

    Is there any logic in the Applicaiton.cfm file that might be excluding the Google code?  Some conditional statements that only allow a block of code to execute under a certain condition?