I'm going to try to clarify what I think the question is before attempting to answer it:

There are four parties

You want to know when a someone visits your page on site X.

Since you have no access to the logs of X, cannot add JavaScript to X, cannot run server side scripting on X, then the only way to get the information is to cause the visitor to make a request to something on Y.

About the only way to do this is to include an image on that page which is loaded off server Y. This isn't entirely reliable as users can disable iamges, disable images from remote sites, etc, etc

Without putting a seperate URL to the image for each id on X you can't reliably know the ID.

HTTP provides a referer header, this will tell you the URL that referred the user agent to another URL (i.e. the URL of the page that linked to the image).

The referer header is, however, optional and many personal firewall products munge it.

There is no reliable way to do what you want.


In reply to Re: capture data - html by dorward
in thread capture data - html by kevyt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.