Search code examples
javascriptscalableironmq

What solution can be used to insert a javascript in clients websites to track various statistics?


I want to insert a piece of javascript in the clients websites to track various statistics (like crazyegg, intercom.io), but traffic related.

I was thinking of using IronMQ but I don't know how to call it from Javascript directly and I am affraid that making a request to my server (3Gb Ram) from sites that have tens of thousands of visitors / days can cripple the server when making too many javascript requests in the same time.


Solution

  • You can call the IronMQ thru the HTTPS API.

    See IronMQ REST/HTTPS API for more information.

    Of course, you will need to provide Project ID and Token to JavaScript code. I suggest to encrypt Token before you place it into JS/HTML and decrypt on page load or before using the API.

    Welcome Iron.io Live Chat even you will need more information.

    Upd: For now it seems does not work. Because of Cross-Origin restrictions. But we're working on it, so, stay in touch.