Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitSegment authored Aug 29, 2023
1 parent 6c79450 commit d5f866b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h1>Sign up for the latest information on sneaker drops!</h1>
</select>
<br> <br>
<input name=“submit” type=“submit” value=“submit”/> </form>

<button onclick="order_btn_click()">Click me to trigger "Order Completed"</button>
<br>
<script type=“text/javascript”>
function identify(e){
Expand Down Expand Up @@ -131,6 +133,17 @@ <h1>Sign up for the latest information on sneaker drops!</h1>
// ]
// });
}

function order_btn_click(){
analytics.track('Order Completed', {
custom_prop: "testing",
custom_obj_prop: {
name: "Testing Obj 1",
item: { id: "item_1" }
},
custom_arr_prop: ["item_1", { name: "item_2" }]
});
}
</script>
</body>
</html>

0 comments on commit d5f866b

Please sign in to comment.