| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -519,7 +519,7 @@ <h3 id="addbutton">Add the button to your site</h3> | |||
| 519 | 519 | <p>Copy and paste the HTML snippet you customized above, and you're ready to start selling!</p> | |
| 520 | 520 | </li> | |
| 521 | 521 | </ol> | |
| 522 | - | ||
| 522 | + | ||
| 523 | 523 | <h3>Environment</h3> | |
| 524 | 524 | <p>In order to test your implementation before going live you can use our sandbox environment. Please check the <a href="http://developer.paypal.com/">Developer Portal</a> for further information.</p> | |
| 525 | 525 | ||
@@ -537,6 +537,17 @@ <h3>Find out more</h3> | |||
| 537 | 537 | ||
| 538 | 538 | <script src="js/jquery.min.js"></script> | |
| 539 | 539 | <script src="js/bootstrap.min.js"></script> | |
| 540 | + <script type='text/javascript'> | ||
| 541 | + var _gaq = _gaq || []; | ||
| 542 | + _gaq.push(['_setAccount', 'UA-36123826-1']); | ||
| 543 | + _gaq.push(['_trackPageview']); | ||
| 544 | + | ||
| 545 | + (function() { | ||
| 546 | + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
| 547 | + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
| 548 | + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
| 549 | + })(); | ||
| 550 | + </script> | ||
| 540 | 551 | <script src="js/app.js"></script> | |
| 541 | 552 | </body> | |
| 542 | 553 | </html> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ | |||
| 41 | 41 | // Build a map out of the form data | |
| 42 | 42 | for (i = 0, len = inputs.length; i < len; i++) { | |
| 43 | 43 | input = $(inputs[i]); | |
| 44 | - | ||
| 44 | + | ||
| 45 | 45 | if(input.is(':checkbox')) { | |
| 46 | 46 | if(input.is(':checked')) { | |
| 47 | 47 | data[input.attr('name')] = { | |
@@ -87,6 +87,11 @@ | |||
| 87 | 87 | ||
| 88 | 88 | // Close the modal | |
| 89 | 89 | modal.modal('hide'); | |
| 90 | + | ||
| 91 | + // Track Events | ||
| 92 | + if (data.button) { | ||
| 93 | + _gaq.push(['_trackEvent', 'JavaScriptButtons', data.button.value]); | ||
| 94 | + } | ||
| 90 | 95 | }); | |
| 91 | 96 | ||
| 92 | 97 | }()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments