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 ifpa= 0; var query = window.location.search.substring(1); if (query.length > 0) { var vars = query.split('&'); for (var i = 0; i < vars.length; i++) { 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 + "' />");
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?
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?
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 ifpa= 0;
var query = window.location.search.substring(1);
if (query.length > 0) {
var vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
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>
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?
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?
is working on a reply...
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.