Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Psib3r 70 posts 119 karma points
    May 14, 2012 @ 15:42
    Psib3r
    0

    javascript tracking tags

    Hi, not sure if this is the right place for this, i have been trying t5o get some tracking tags into the website and placed script like the following into macros and put them on the pages, but it looks like they don't seem to be working, is there another way of doing this?

    <script type="text/javascript">

     var ifpa0;
      var query window.location.search.substring(1);
      if (query.length 0{
        var vars query.split('&');
        for (var 0vars.lengthi++{
          var pair vars[i].split('=');
          if (pair[0].toLowerCase(== 'ifpaid'{
            ifpa pair[1];                                      
          }
        }
      }
    document.write ("<iframe width='1' height='1' frameborder='0' src='http://affiliate.tfntracker.com/rd/px.php?hid=" tauid "&sid=2784&transid=" ifpa "' />");

    </script>

  • Grant Thomas 291 posts 324 karma points
    May 14, 2012 @ 17:58
    Grant Thomas
    0

    Please define how they aren't working. Don't the Macros render the scripts? Do they render but don't seem to fire? Do they fire but cause errors, if so what are the errors in the browser console?

  • Psib3r 70 posts 119 karma points
    May 15, 2012 @ 09:39
    Psib3r
    0

    sorry, should have been more specific, the browser renders the script but they do not seem to fire, i have decided to ditch th javascript anyway now and see about re-writing user razor.  but thank you.

     

    actually if anyone has an example of writing a cookie using razor can they please show me?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies