How to create and implement a pixel tracking code

后端 未结 4 677
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 07:36

OK, here\'s a goal I\'ve been looking for a while.

As it\'s known, most advertising and analytics companies use a so called \"pixel\" code in order to track websites vi

4条回答
  •  难免孤独
    2021-01-30 08:10

    Just adding my 2 cents to this thread because I think an important, and frequently used, option is missing: you don't necessarily need a scripting language to capture the request. A more efficient approach is to use the web server access log (like apache access log for instance) to log the request and then handle that log with whatever tools you see fit, like ELK stack for instance.

    This makes serving the requests much lighter because no scripting language is loaded to prepare the response, just native apache response, which is typically much more efficient.

提交回复
热议问题