Jump to content

[SOLVED] Little JS widgets to collect data


therealwesfoster

Recommended Posts

I'm wanting to create a little JS image what will:

  • Link to a site when clicked on
  • Collect data from the site it is displayed on (hits, unique hits etc)
  • Report the collected stats to a main site which will add them to a DB

 

Any suggestions or tutorials?

 

Wes

hmmm then you still dont use javascript.

A trick I usually see here is a 1px image thats not even a pixel but a call to an external script for example

<img  src="getinfo.php?data=info" style="width:1px;height:1px" />

You could just make php write and image and save data to a database.

To make it link simply put it in anchor tags

<a href="somelink.html"><img  src="getinfo.php?data=info"  /></a>

 

you still dont need javascript here

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.