22
22
var _qevents = _qevents || [ ] ;
23
23
24
24
_qevents . push ( {
25
- cid : document . getElementById ( "dcid" ) . value ,
26
- uid : document . getElementById ( "duid" ) . value ,
27
- act : document . getElementById ( "dact" ) . value ,
28
- pid : document . getElementById ( "dpid" ) . value ,
29
- cat : document . getElementById ( "dcat" ) . value ,
25
+ cid : "saas_testing_ec" ,
26
+ uid : "testbot" ,
27
+ act : "VIEW" ,
28
+ pid : "testproduct" ,
29
+ cat : "testcat" ,
30
30
ptuple : [
31
31
{
32
- paypid : document . getElementById ( "dpaypid" ) . value ,
33
- qty : document . getElementById ( "dqty" ) . value ,
34
- unit_price : document . getElementById ( "dunit_price" ) . value ,
35
- pcat : document . getElementById ( "dpcat" ) . value ,
36
- pmk : document . getElementById ( "dpmk" ) . value ,
32
+ paypid : "testpay" ,
33
+ qty : "1" ,
34
+ unit_price : "12345" ,
35
+ pcat : "testpcat" ,
36
+ pmk : "testpromo" ,
37
37
} ] ,
38
- ercamp : document . getElementById ( "dercamp" ) . value ,
39
- erad : document . getElementById ( "derad" ) . value ,
38
+ ercamp : "testcamp" ,
39
+ erad : "testad" ,
40
40
} ) ;
41
41
42
42
var erUrlPrefix = ( 'https:' == document . location . protocol ?'https://' :'http://' ) + erHostname + '/' ;
77
77
/** Send action **/
78
78
ER . track . send ( _qevents , [ ] , '' , _qqueryList ) ;
79
79
}
80
+
80
81
( function ( ) {
81
82
var er = document . createElement ( 'script' ) ;
82
83
er . type = 'text/javascript' ;
85
86
var currentJs = document . getElementById ( 'etu-recommender' ) ;
86
87
currentJs . parentNode . insertBefore ( er , currentJs ) ;
87
88
} ) ( ) ;
88
- //function getCustomizeActionData(){
89
- //}
89
+
90
+ function getCustomizeActionData ( ) {
91
+
92
+ }
90
93
91
94
</ script >
92
95
</ head >
@@ -106,23 +109,23 @@ <h1>er.js testing EC site</h1>
106
109
< label > fill </ label >
107
110
< input class = "default-action " type = "text " id = "dact " placeholder = "act " value = "VIEW "/> < br >
108
111
< label > fill </ label >
109
- < input class = "default-action " type = "text " id = "dcat " placeholder = "cat " value = "testing "/> < br >
112
+ < input class = "default-action " type = "text " id = "dcat " placeholder = "cat " value = "testcat "/> < br >
110
113
< label > fill </ label >
111
- < input class = "default-action " type = "text " id = "dpid " placeholder = "pid " value = "test "/> < br >
114
+ < input class = "default-action " type = "text " id = "dpid " placeholder = "pid " value = "testproduct "/> < br >
112
115
< label > fill </ label >
113
- < input class = "default-action " type = "text " id = "dpcat " placeholder = "pcat " value = ""/> < br >
116
+ < input class = "default-action " type = "text " id = "dpcat " placeholder = "pcat " value = "testpcat "/> < br >
114
117
< label > fill </ label >
115
- < input class = "default-action " type = "text " id = "dpaypid " placeholder = "paypid " value = ""/> < br >
118
+ < input class = "default-action " type = "text " id = "dpaypid " placeholder = "paypid " value = "testpay "/> < br >
116
119
< label > fill </ label >
117
- < input class = "default-action " type = "text " id = "dunit_price " placeholder = "unit_price " value = ""/> < br >
120
+ < input class = "default-action " type = "text " id = "dunit_price " placeholder = "unit_price " value = "12345 "/> < br >
118
121
< label > fill </ label >
119
- < input class = "default-action " type = "text " id = "dpmk " placeholder = "pmk " value = ""/> < br >
122
+ < input class = "default-action " type = "text " id = "dpmk " placeholder = "pmk " value = "testpromo "/> < br >
120
123
< label > fill </ label >
121
- < input class = "default-action " type = "text " id = "dqty " placeholder = "qty " value = ""/> < br >
124
+ < input class = "default-action " type = "text " id = "dqty " placeholder = "qty " value = "1 "/> < br >
122
125
< label > fill </ label >
123
- < input class = "default-action " type = "text " id = "dercamp " placeholder = "ercamp " value = ""/> < br >
126
+ < input class = "default-action " type = "text " id = "dercamp " placeholder = "ercamp " value = "testcamp "/> < br >
124
127
< label > fill </ label >
125
- < input class = "default-action " type = "text " id = "derad " placeholder = "erad " value = ""/> < br >
128
+ < input class = "default-action " type = "text " id = "derad " placeholder = "erad " value = "testad "/> < br >
126
129
127
130
< p > </ p >
128
131
</ div >
@@ -154,8 +157,7 @@ <h1>er.js testing EC site</h1>
154
157
< input class = "custom-action " type = "text " id = "aercamp " placeholder = "ercamp " value = ""/> < br >
155
158
< label > fill </ label >
156
159
< input class = "custom-action " type = "text " id = "aerad " placeholder = "erad " value = ""/> < br >
157
-
158
- < button type ="submit " class = "custom-action " id ="custom-click " formaction ="register.html "> 送出資料 </ button >
160
+ < button class = "test " type = "button " id ="custom-click " onclick = "ERsend() "> 送出資料 </ button >
159
161
</ div >
160
162
</ body >
161
163
</ html >
0 commit comments