How to create and implement a pixel tracking code

后端 未结 4 674
被撕碎了的回忆
被撕碎了的回忆 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:14

    Well, all of the above codes are correct and is good but to be certain, the guy above mention "g.gif"

    You can just add a simple php code to write to an sql or fwrite("file.txt",$opened) where var $opened serves as the counter++ if someone opened your mail... then save it as "g.gif"

    TO DO all of this just add these:

    
     AddType application/x-httpd-php .gif
    
    

    to your ".htaccess" file but be sure to make a new directory for that g.gif or whatever.gif where the directory only contains g.gif and .htaccess

提交回复
热议问题