Sha256: 81f9ecb4ec549dbb1b221d95aeaff8b75498f3259f1930fa8995c465d97c0ad6
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 Bytes
Contents
require 'support/capybara_app_helper' RSpec.describe "Facebook Pixel Integration" do before do setup_app(action: :facebook_pixel) do |tracker| tracker.handler :facebook_pixel, { id: 'PIXEL_ID' } end visit '/' end subject { page } it "embeds the script tag with tracking event from the controller action" do expect(page).to have_content("fbq('init', 'PIXEL_ID');") expect(page.body).to include('https://www.facebook.com/tr?id=PIXEL_ID&ev=PageView&noscript=1') end end
Version data entries
4 entries across 4 versions & 1 rubygems