| <script src="//platform.twitter.com/oct.js" type="text/javascript"></script> | |
| <script> | |
| twttr.conversion.trackPid('l4zoa'); | |
| </script> | |
| <noscript> | |
| <img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=l4zoa&p_id=Twitter" /> | |
| <img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=l4zoa&p_id=Twitter" /> | |
| </noscript> | |
| <!-- @cart.order_items.reduce(0){|sum, od| sum += od.size} --> | |
| <% if controller_path == "cart" and action_name == "receipt" and session[:ord_twitter] | |
| session.delete(:ord_twitter) | |
| %> | |
| <!-- Twitter single-event website tag code --> | |
| <script> | |
| twttr.conversion.trackPid( | |
| 'nv473', | |
| { tw_sale_amount: <%= @cart.total %>, tw_order_quantity: <%=@total_order_quantity%> } | |
| ); | |
| </script> | |
| <noscript> | |
| <img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=nv473&p_id=Twitter&tw_sale_amount=<%= @cart.total%>&tw_order_quantity=<%=@total_order_quantity%>"/> | |
| <img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=nv473&p_id=Twitter&tw_sale_amount=<%= @cart.total%>&tw_order_quantity=<%= @total_order_quantity %>"/> | |
| </noscript> | |
| <!-- End Twitter single-event website tag code --> | |
| <% end %> | |
| <% if controller_path =="product_sales" and action_name=="show" %> | |
| <script> | |
| twttr.conversion.trackPid( | |
| 'nv40r', | |
| { oct_p_id: '970', tw_product_id: <%= @product_sale.product_variation.id %>, tw_country_code: 'US' } | |
| ); | |
| </script> | |
| <noscript> | |
| <img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=nv40r&oct_p_id=970&p_id=Twitter&tw_product_id=<%= @product_sale.product_variation.id %>&tw_country_code = US"/> | |
| <img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=nv40r&oct_p_id=970&p_id=Twitter&tw_product_id=<%= @product_sale.product_variation.id %>&tw_country_code = US"/> | |
| </noscript> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment