Subversion Repositories SmartDukaan

Rev

Rev 6107 | Rev 6123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6107 Rev 6120
Line 116... Line 116...
116
		</div>
116
		</div>
117
	</div>
117
	</div>
118
	#include("templates/footer.vm")
118
	#include("templates/footer.vm")
119
	
119
	
120
    <script type="text/javascript" charset="utf-8">
120
    <script type="text/javascript" charset="utf-8">
121
    #set($order = $action.getRechargeOrder())
121
	#set($order = $action.getRechargeOrder())
-
 
122
	
-
 
123
	  var _gaq = _gaq || [];
-
 
124
	  _gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
-
 
125
      _gaq.push(['_trackPageview']);
122
    
126
	  
123
    if(typeof _gaq != "undefined" && _gaq != null)  {
127
	  if(typeof _gaq != "undefined" && _gaq != null)  {
124
        _gaq.push(['_addTrans',
128
        _gaq.push(['_addTrans',
125
           '$order.getDisplayId()',                // order ID - required
129
           '$order.getDisplayId()',                // order ID - required
126
           '${in.shop2020.title}',                       // affiliation or store name
130
           '${in.shop2020.title}',                       // affiliation or store name
127
           '$order.getTotalAmount()',      // total - required
131
           '$order.getTotalAmount()',      // total - required
128
           '0',                             // tax
132
           '0',                             // tax
Line 141... Line 145...
141
            '$order.getTotalAmount()', // unit price - required
145
            '$order.getTotalAmount()', // unit price - required
142
            '1'    // quantity - required
146
            '1'    // quantity - required
143
        ]);
147
        ]);
144
        _gaq.push(['_trackTrans']);
148
        _gaq.push(['_trackTrans']);
145
    }
149
    }
146
	</script>
-
 
147
 
150
 
-
 
151
      (function() {
148
	<script type="text/javascript" charset="utf-8">
152
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-
 
153
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-
 
154
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
149
	$(function(){
155
      })();
-
 
156
	  
150
		trackEventWithGA('Recharge', 'Recharge Result', '$status.get(1)');
157
	  trackEventWithGA('Recharge', 'Recharge Result', '$status.get(1)');
151
	});
-
 
152
	</script>
158
     </script>
153
	
159
	
154
	
160
	
155
</body>
161
</body>
156
</html>
162
</html>