I am developing a website using the MEAN stack. My business model relies primarily on generating revenue from targeted ads which are based on user's information. To simplify this: User A is interested in Product XYZ. (I will have this piece of information). I will give him ads related to the product XYZ. (Facebook ads in a nutshell) I do not know how I can implement a backend code to make this happen. Using
Thank you.
This is not about what your technology stack is. You need to collect some data from your application that has information about your visitors (which will be your features) and the ground truth about if they are interested in whatever product (you should label your visitors/observations). If you do not have the data yet, there is nothing to suggest on, so the first step for you should be collecting the data and then start analyzing it to understand if the dataset has enough quality (if not you will need to change the way you collect data, look for more and better features. this process may take a few iterations) and then what possible learners you can utilize.
Once you have dataset, I suggest existing tools for analyzing your data and employ some learners on your dataset, in Phyton or R there are very easy to use and great frameworks that will help you achieve what you want. The coding of the algorithm should be the very last thing since it will be very tough to debug and optimize your code when if you do not even know whatever the algorithm is a good fit for your data.