Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Application.cfm and Google analytics

New Here ,
Dec 01, 2010 Dec 01, 2010

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?

912
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Dec 01, 2010 Dec 01, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 02, 2010 Dec 02, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Dec 02, 2010 Dec 02, 2010
LATEST

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources