Created
December 20, 2016 18:09
-
-
Save dangrossman/7c9f4b8538ee0774fe9ae96c2f9f155c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| var prices = document.getElementsByClassName('elOrderProductOptinPrice'); | |
| var price= 0; | |
| for (var i = 0; i < prices.length; i++) { | |
| price += parseFloat(prices[i].innerHTML.replace('$', '')); | |
| } | |
| improvely.init('alsearsmd', 1); | |
| improvely.conversion({ | |
| goal: 'sale', | |
| revenue: price, | |
| reference: '' | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment