Using meta refresh for tracking pixel

4 replies
Here is my code:

<html>
<head>
<title> No title</title>
<META
HTTP-EQUIV="Refresh"
CONTENT=".5; URL=out.php">
<meta name="generator" content="Namo WebEditor(Trial)">
</head>
<body>
<img height="1" width="1" border="0" style="display: none;" src="http://download-4-free.com/tracking202/static/gpx.php?amount=.4" />
</body>
</html>

I'm trying to figure out how many tenths of a second I can put in the CONTENT=".5; area to leave enough time for my tracking pixel to load.

Also I need to know if I put the meta refresh code and tracking pixel in the correct spots and if everything else looks ok.
Is there supposed to be a space at the end of the code?
?amount=.4" />
#meta #pixel #refresh #tracking
  • Profile picture of the author phpg
    Why not just refresh with javascript instead of meta? Then you don't need to guess is your pixel loaded or not, it'll refresh when everything's loaded.

    <body onload="javascript:document.location.href='out.php ';">
    {{ DiscussionBoard.errors[5960167].message }}
    • Profile picture of the author SirTestAlot
      Originally Posted by phpg View Post

      Why not just refresh with javascript instead of meta? Then you don't need to guess is your pixel loaded or not, it'll refresh when everything's loaded.
      <body onload="javascript:document.location.href='out.php ';">
      So this would work then right?


      <html>
      <head>
      <title>No title</title>
      <meta name="generator" content="Namo WebEditor(Trial)">
      </head>
      <body onload="javascript:document.location.href='out.php ';">
      <img height="1" width="1" border="0" style="display: none;" src="gpx.php" />
      </body>
      </html>
      {{ DiscussionBoard.errors[6002496].message }}
  • Profile picture of the author Craftisy
    Use a metarefresh without a delay
    {{ DiscussionBoard.errors[5961574].message }}
  • Profile picture of the author SteveJohnson
    Your tracking pixel doesn't have to 'load', there is nothing really to load. As soon as the browser makes the request to the image source address, the damage is done. You can redirect immediately.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[6004425].message }}

Trending Topics