Subversion Repositories SmartDukaan

Rev

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

Rev 6143 Rev 6150
Line 124... Line 124...
124
	#include("templates/footer.vm")
124
	#include("templates/footer.vm")
125
	
125
	
126
    <script type="text/javascript" charset="utf-8">
126
    <script type="text/javascript" charset="utf-8">
127
	#set($order = $action.getRechargeOrder())
127
	#set($order = $action.getRechargeOrder())
128
	
128
	
-
 
129
	#if($order.getStatus().name()=="RECHARGE_SUCCESSFUL")
129
	  var _gaq = _gaq || [];
130
	var _gaq = _gaq || [];
130
	  _gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
131
	  _gaq.push(['_setAccount', '${in.shop2020.gaAccountID}']);
131
      _gaq.push(['_trackPageview']);
132
      _gaq.push(['_trackPageview']);
132
	  
133
	  
133
	  if(typeof _gaq != "undefined" && _gaq != null)  {
134
	  if(typeof _gaq != "undefined" && _gaq != null)  {
134
        _gaq.push(['_addTrans',
135
        _gaq.push(['_addTrans',
Line 157... Line 158...
157
      (function() {
158
      (function() {
158
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
159
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
159
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
160
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
160
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
161
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
161
      })();
162
      })();
-
 
163
	#end
162
	  
164
  
163
	  trackEventWithGA('Recharge', 'Recharge Result', '$status.get(1)');
165
	  trackEventWithGA('Recharge', 'Recharge Result', '$status.get(1)');
164
     </script>
166
     </script>
165
	
167
	
166
	
168
	
167
</body>
169
</body>