The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 22, 2012, 06:18:16 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  General iAuto Discussions
| | |-+  Google analytics code
« previous next »
Pages: [1] Print
Author Topic: Google analytics code  (Read 857 times)
bstruik
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: July 29, 2009, 05:50:44 PM »

Hello, I'm trying to put the Google analytics code in Iauto Main.tpl but i still get the error.
Is there anyone else that uses Google analytics with Iauto Software?
Logged
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« Reply #1 on: August 05, 2009, 10:00:47 AM »

Hello,

You need to put the code within {literal} and {/literal} tags.

It will look like:
{literal}
code
...
code
{/literal}


Logged

Jakkie81
Newbie
*

Karma: 0
Posts: 7


View Profile
« Reply #2 on: August 05, 2009, 10:42:43 PM »

Insert it just before the closing </body> & </html> Tags.

EG:

   {literal}      
   <script type="text/javascript">
   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   <script type="text/javascript">
   try {
   var pageTracker = _gat._getTracker("UA-*******-1");
   pageTracker._trackPageview();
   } catch(err) {}</script>
   {/literal}
      
   </body>
</html>
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!