snegir

sourcebuster — fb purchase

Feb 22nd, 2018
275
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.  
  3.  
  4.  
  5. if ({{current_utm_source}} == 'facebook' && {{current_utm_medium}} == 'cpc') {
  6. fbq('track', 'purchase-direct');
  7. } else {
  8. fbq('track', 'purchase-assisted');
  9. }
  10.  
  11.  
  12.  
  13. if ({{current_utm_source}} == 'facebook' && {{current_utm_medium}} == 'cpc') {
  14.  
  15. fbq('track', 'purchase', {
  16. 'typeConversion' : 'assisted'
  17. });
  18.  
  19. } else {
  20.  
  21. fbq('track', 'purchase', {
  22. 'typeConversion' : 'direct'
  23. });
  24.  
  25. }
  26.  
  27.  
  28.  
  29.  
  30. </script>
RAW Paste Data