How can I insert javascript redirect with Stat Counter tracking code?

Discussion in 'Programming' started by bbcrew, Jan 22, 2022.

  1. #1
    Hi

    How can I insert javascript redirect with Stat Counter tracking code?

    I put following javascript redirect in the same page with Stat Counter tracking code.

    But it seems Stat Counter can’t track any traffic.

    <script>window.location.href = "targeturl";</script>
    Code (markup):
    Thanks
     
    bbcrew, Jan 22, 2022 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Why are you using statCounter like it's 2002 instead of just gleaning the same information from your server logs with tools like analog or webalizer?
     
    deathshadow, Jan 25, 2022 IP