1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where do I place these tags '{literal}{/literal}' in javascript?

Discussion in 'HTML & JavaScript' started by ycfme, Oct 13, 2010.

  1. ycfme

    ycfme Power Member

    Joined:
    Mar 24, 2010
    Messages:
    779
    Likes Received:
    65
    Anyone know where to insert these tags for my Goog Analytics javascript? '{literal}{/literal}'
    The template system for the script I am using requires you do
    this since it uses some of the same keywords and delimeters as javascript.


    Code:
    <script  type='text/javascript'  src='[URL="http://www.guaranteedfree.net/jquery1159.js?ver=1.4.2"]http://www.guaranyour.net/jquery1159.js?ver=1.4.2[/URL]'></script>
    
              
    
    <script type="text/javascript">
    
      var _gaq =  _gaq || [];
      _gaq.push(['_setAccount', 'UA-19066333-1']);
       _gaq.push(['_trackPageview']);
    
      (function() {
        var ga =  document.createElement('script'); ga.type = 'text/javascript';  ga.async =  true;
        ga.src = ('https:' == document.location.protocol ?  '[URL="https://ssl/"]https://ssl[/URL]' : '[URL="http://www/"]http://www[/URL]') + '.[URL="http://google-analytics.com/ga.js"]google-analytics.com/ga.js[/URL]';
           var s = document.getElementsByTagName('script')[0];  s.parentNode.insertBefore(ga, s);
      })();   
    
    </script>
     
  2. ycfme

    ycfme Power Member

    Joined:
    Mar 24, 2010
    Messages:
    779
    Likes Received:
    65
    Nevermind, got it...:)
     
  3. xxJacexx

    xxJacexx Newbie

    Joined:
    Jan 20, 2011
    Messages:
    2
    Likes Received:
    0
    Where did you end up placing the tags, need the same help, cheers
     
  4. locknload007

    locknload007 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 14, 2010
    Messages:
    475
    Likes Received:
    67
    He is using smarty and basically what is between {literal}{/literal} is to be taken literally. So the whole code goes between it, like in a normal site.