外部サイトでコンバージョン トラッキングを行う Rails アプリを構築しています。ユーザーがコンバージョン ページ (AdWords など) に画像タグを貼り付けられるようにしたいと考えています。その画像がリクエストされるたびに、コンバージョンがアプリに登録されます。
respond_to do |format|
if @conversion.save
flash[:notice] = 'Conversion was successfully created.'
format.html { redirect_to(@conversion) }
format.xml { render :xml => @conversion, :status => :created, :location => @conversion }
format.js { render :json => @conversion, :status => :created }
format.gif { head :status => :ok }
else
format.html { render :action => "new" }
format.xml { render :xml => @conversion.errors, :status => :unprocessable_entity }
end
end
このようにして、ブラウザは存在しない .gif 画像を取得します。これを行うより良い方法はありますか?