Advertisement
ezidan

Untitled

Nov 12th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- GOOGLE -->
  2. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-128043829-1"></script>
  3. <script>
  4.   window.dataLayer = window.dataLayer || [];
  5.   function gtag(){dataLayer.push(arguments);}
  6.   gtag('js', new Date());
  7.  
  8.   gtag('config', 'UA-128043829-1');
  9.   gtag('config', 'AW-778052260');
  10.   <?php if(strstr(getenv("REQUEST_URI"),"upsell.php?product=1a")) { ?>
  11.   gtag('event', 'purchase', {
  12.     'transaction_id': '<?=strtoupper($session[analytic][0])?>',
  13.     'value': <?=number_format($session[analytic][1],2,".","")?>,
  14.     'currency': 'USD'
  15.   });
  16.  
  17. <?php } ?>
  18. </script>
  19.  
  20. <!--google adwords-->
  21. <script>
  22. <?php if(strstr(getenv("REQUEST_URI"),"upsell.php")) { ?>
  23.  
  24. gtag('event', 'conversion', {
  25. 'send_to': "AW-778052260/FyO_CLn4g7EBEKTFgPMC",
  26. 'value':<?=number_format($session[analytic][1],2,".","")?>,
  27. 'currency': 'USD',
  28. 'transaction_id': '<?=strtoupper($session[analytic][0])?>'
  29. });
  30. <?php } ?>
  31. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement