Sha256: e3b64abf8591688911a9efd0c42e376e1c67d6b7d6a6b5afd1cdcc30a2936255

Contents?: true

Size: 879 Bytes

Versions: 1

Compression:

Stored size: 879 Bytes

Contents

<script type="text/javascript">
  if (typeof fbq == 'undefined') {

    !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
    n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
    n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
    t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
    document,'script','//connect.facebook.net/en_US/fbevents.js');

    fbq('init', '<%= options[:id] %>');
    fbq('track', "PageView");
  }
</script>
<noscript>
  <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=<%= options[:id] %>&ev=PageView&noscript=1"/>
</noscript>

<% if events.any? %>
  <script type="text/javascript">
    <% events.each do |event| %>
      fbq("<%= event.name %>", <%= event.write %>);
    <% end %>
  </script>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-tracker-1.5.0 lib/rack/tracker/facebook_pixel/template/facebook_pixel.erb